From 13f71519b4339d3e24893b2f26b079342241ffe8 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 7 May 2015 13:38:50 +0200 Subject: [PATCH] Call /lib/apparmor/profile-load directly instead of the wrapper 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 --- config/init/upstart/lxc.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/init/upstart/lxc.conf b/config/init/upstart/lxc.conf index fae883681..aeb11fe95 100644 --- a/config/init/upstart/lxc.conf +++ b/config/init/upstart/lxc.conf @@ -36,9 +36,9 @@ pre-start script # 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 -- 2.47.3