Skip to content

Commit

Permalink
init: Support older apparmor
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Aug 27, 2015
1 parent 307e830 commit 5d46645
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/init/systemd/lxc-apparmor-load
Expand Up @@ -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

3 changes: 3 additions & 0 deletions config/init/upstart/lxc.conf
Expand Up @@ -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

Expand Down

0 comments on commit 5d46645

Please sign in to comment.