]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
drop mac_admin and mac_override
authorSerge Hallyn <serge.hallyn@canonical.com>
Mon, 23 Jan 2012 17:57:59 +0000 (11:57 -0600)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Sun, 26 Feb 2012 09:44:40 +0000 (10:44 +0100)
mac_admin stops the container from loading LSM policy.  Neither
selinux nor apparmor currently will do well with automatic namespacing
of policy (though it's coming in apparmor, after which we can re-enable
this).

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-ubuntu.in

index 8a413ff4dc0ece64418dc857109893e1ba121911..ba601edc5dd17f3a578c229d1beee1ac7a1776a2 100644 (file)
@@ -206,7 +206,7 @@ lxc.pts = 1024
 lxc.rootfs = $rootfs
 lxc.mount  = $path/fstab
 lxc.arch = $arch
-lxc.cap.drop = sys_module
+lxc.cap.drop = sys_module mac_admin mac_override
 
 lxc.cgroup.devices.deny = a
 # Allow any mknod (but not using the node)