File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/app-builder-lib/templates/linux Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ if test -d "/etc/apparmor.d"; then
42
42
if apparmor_parser --skip-kernel-load --debug " $APPARMOR_PROFILE_SOURCE " > /dev/null 2>&1 ; then
43
43
cp -f " $APPARMOR_PROFILE_SOURCE " " $APPARMOR_PROFILE_TARGET "
44
44
45
- if hash apparmor_parser 2> /dev/null; then
45
+ # Updating the current AppArmor profile is not possible and probably not meaningful in a chroot'ed environment.
46
+ # Use cases are for example environments where images for clients are maintained.
47
+ # There, AppArmor might correctly be installed, but live updating makes no sense.
48
+ if ! { [ -x ' /usr/bin/ischroot' ] && /usr/bin/ischroot; } && hash apparmor_parser 2> /dev/null; then
46
49
# Extra flags taken from dh_apparmor:
47
50
# > By using '-W -T' we ensure that any abstraction updates are also pulled in.
48
51
# https://wiki.debian.org/AppArmor/Contribute/FirstTimeProfileImport
You can’t perform that action at this time.
0 commit comments