AppArmor ships /lib/apparmor/profile-load. /lib/init/apparmor-profile-load is
merely a wrapper which calls the former, so just call it directly to avoid the
dependency on the wrapper.
LP: #
1432683
# don't load profiles if mount mediation is not supported
SYSF=/sys/kernel/security/apparmor/features/mount/mask
if [ -f $SYSF ]; then
- if [ -x /lib/init/apparmor-profile-load ]; then
- /lib/init/apparmor-profile-load usr.bin.lxc-start
- /lib/init/apparmor-profile-load lxc-containers
+ if [ -x /lib/apparmor/profile-load ]; then
+ /lib/apparmor/profile-load usr.bin.lxc-start
+ /lib/apparmor/profile-load lxc-containers
fi
fi
# don't load profiles if mount mediation is not supported
SYSF=/sys/kernel/security/apparmor/features/mount/mask
if [ -f $SYSF ]; then
- if [ -x /lib/init/apparmor-profile-load ]; then
- /lib/init/apparmor-profile-load usr.bin.lxc-start
- /lib/init/apparmor-profile-load lxc-containers
+ if [ -x /lib/apparmor/profile-load ]; then
+ /lib/apparmor/profile-load usr.bin.lxc-start
+ /lib/apparmor/profile-load lxc-containers
fi
fi