]> 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>
Thu, 27 Aug 2015 19:35:01 +0000 (15:35 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/init/systemd/lxc-apparmor-load
config/init/upstart/lxc.conf

index 619cd5324a756ceb67eb7cfd908115d47ece437b..abca581e870baf69e36e3cfa31c42f4c83417817 100755 (executable)
@@ -9,6 +9,8 @@ if [ -f $SYSF ]; then
        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
-
index ff21137b9e0b0d21e31bedb3e83e76e6941d62ff..437db3ce5f1df3b46d5e264c96a3898baba93c3c 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