]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
apparmor: Fix slave bind mounts 393/head
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 8 Jan 2015 12:09:37 +0000 (13:09 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 8 Jan 2015 12:09:37 +0000 (13:09 +0100)
The permission to make a mount "slave" is spelt "make-slave", not "slave", see
https://launchpad.net/bugs/1401619. Also, we need to make all mounts slave, not
just the root dir.

https://launchpad.net/bugs/1350947

config/apparmor/abstractions/start-container

index 1bb94c62659c465cd6955bb810061d09ce6a6fc1..e36196884a485edb16d7f4001fd8ce31ec93ad55 100644 (file)
@@ -13,7 +13,7 @@
   mount -> /usr/lib/lxc/{**,},
   mount fstype=devpts -> /dev/pts/,
   mount options=bind /dev/pts/ptmx/ -> /dev/ptmx/,
-  mount options=(rw, slave) -> /,
+  mount options=(rw, make-slave) -> **,
   mount fstype=debugfs,
   # allow pre-mount hooks to stage mounts under /var/lib/lxc/<container>/
   mount -> /var/lib/lxc/{**,},