]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
apparmor: don't allow mounting cgroupfs by default
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 31 Mar 2014 22:29:40 +0000 (17:29 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 1 Apr 2014 17:49:39 +0000 (13:49 -0400)
Leave the line to do it (commented out) as some users may not be
using cgmanager, and may in fact still need those mounts.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
config/apparmor/profiles/lxc-default-with-nesting

index 245f2f8fc718354c3de0d0efe7f9c9c6c0dd22d9..03325aae11abcaf4c0fa5ac07d0bb5a3f20692d9 100644 (file)
@@ -5,7 +5,8 @@ profile lxc-container-default-with-nesting flags=(attach_disconnected,mediate_de
   #include <abstractions/lxc/container-base>
   #include <abstractions/lxc/start-container>
 
-  mount fstype=cgroup -> /sys/fs/cgroup/**,
+#  Uncomment the line below if you are not using cgmanager
+#  mount fstype=cgroup -> /sys/fs/cgroup/**,
 
   mount fstype=proc -> /var/cache/lxc/**,
   mount fstype=sysfs -> /var/cache/lxc/**,