Skip to content
Snippets Groups Projects
Commit ab856a0b authored by Emanuele Aina's avatar Emanuele Aina
Browse files

ospack: Switch AppArmor profiles back to enforce mode

This reverts commit fffab36d,
"ospack: Switch AppArmor profiles to complain mode".

After the rebase to Buster, some AppArmor profiles have become problematic and
prevent the components from working. In particular, the logind, Canterbury and
Ribchester profiles prevent the Mildenhall HMI from appearing on the screen so
they were forced into complain mode rather than enforce mode.

Now the underlying issue has been fixed in APERTIS-5840 the profiles can be
restored to their enforcing mode.

Fixes: https://phabricator.apertis.org/T6010



Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 9f46ffdc
No related branches found
No related tags found
1 merge request!151ospack: Switch AppArmor profiles back to enforce mode
Pipeline #2991 passed
...@@ -572,16 +572,6 @@ actions: ...@@ -572,16 +572,6 @@ actions:
chroot: true chroot: true
script: scripts/generate_locales.sh script: scripts/generate_locales.sh
- action: run
description: Switch the logind AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/lib.systemd.systemd-logind
- action: run
description: Switch the Tracker AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.lib.tracker
# work around the Debos isssue in https://phabricator.apertis.org/T4308 # work around the Debos isssue in https://phabricator.apertis.org/T4308
- action: run - action: run
chroot: false chroot: false
......
...@@ -171,26 +171,6 @@ actions: ...@@ -171,26 +171,6 @@ actions:
chroot: true chroot: true
script: scripts/generate_locales.sh script: scripts/generate_locales.sh
- action: run
description: Switch the logind AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/lib.systemd.systemd-logind
- action: run
description: Switch the Canterbury AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.canterbury*
- action: run
description: Switch the Ribchester AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.ribchester*
- action: run
description: Switch the Newport AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.newport
# work around the Debos isssue in https://phabricator.apertis.org/T4308 # work around the Debos isssue in https://phabricator.apertis.org/T4308
- action: run - action: run
chroot: false chroot: false
......
...@@ -750,41 +750,6 @@ actions: ...@@ -750,41 +750,6 @@ actions:
chroot: true chroot: true
script: scripts/generate_locales.sh script: scripts/generate_locales.sh
- action: run
description: Switch the logind AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/lib.systemd.systemd-logind
- action: run
description: Switch the Canterbury AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.canterbury*
- action: run
description: Switch the Ribchester AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.ribchester*
- action: run
description: Switch the Newport AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.newport
- action: run
description: Switch the Rhosydd AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.rhosydd
- action: run
description: Switch the Tracker AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.lib.tracker
- action: run
description: Switch the Frome AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.frome
# work around the Debos isssue in https://phabricator.apertis.org/T4308 # work around the Debos isssue in https://phabricator.apertis.org/T4308
- action: run - action: run
chroot: false chroot: false
......
...@@ -286,43 +286,6 @@ actions: ...@@ -286,43 +286,6 @@ actions:
chroot: true chroot: true
script: scripts/generate_locales.sh script: scripts/generate_locales.sh
- action: run
description: Switch the logind AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/lib.systemd.systemd-logind
{{ if eq $ivitools "enabled" }}
- action: run
description: Switch the Canterbury AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.canterbury*
- action: run
description: Switch the Ribchester AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.*.ribchester*
- action: run
description: Switch the Newport AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.newport
- action: run
description: Switch the Rhosydd AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.rhosydd
{{ end }}
- action: run
description: Switch the Tracker AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.lib.tracker
- action: run
description: Switch the Frome AppArmor profile to complain mode
chroot: false
script: scripts/apparmor-profile-switch-to-complain.sh ${ROOTDIR}/etc/apparmor.d/usr.bin.frome
# work around the Debos isssue in https://phabricator.apertis.org/T4308 # work around the Debos isssue in https://phabricator.apertis.org/T4308
- action: run - action: run
chroot: false chroot: false
......
#!/bin/sh
set -eu
for ARG in "$@"
do
PROFILE=$(basename "$ARG")
echo "AppArmor: forcing profile $PROFILE in complain mode"
ln -s "../$PROFILE" "${ROOTDIR}/etc/apparmor.d/force-complain/"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment