]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
init: Support older apparmor
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 27 Aug 2015 19:25:08 +0000 (15:25 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Sep 2015 22:52:02 +0000 (18:52 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/init/upstart/lxc.conf

index aeb11fe95d0842038ea50814794f943032403e8d..09ee38dc8ff80dc6580eba4f1d1308774a9abfac 100644 (file)
@@ -39,6 +39,9 @@ pre-start script
                if [ -x /lib/apparmor/profile-load ]; then
                        /lib/apparmor/profile-load usr.bin.lxc-start
                        /lib/apparmor/profile-load lxc-containers
+               elif [ -x /lib/init/apparmor-profile-load ]; then
+                       /lib/init/apparmor-profile-load usr.bin.lxc-start
+                       /lib/init/apparmor-profile-load lxc-containers
                fi
        fi