]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
AppArmor: add make-rslave to usr.bin.lxc-start
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 27 Jun 2016 20:20:00 +0000 (16:20 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 23:27:54 +0000 (18:27 -0500)
The profile already contains
  mount options=(rw, make-slave) -> **,

Which allows going through all mountpoints with make-slave,
so it seems to make sense to also allow the directly
recursive variant with "make-rslave".

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/apparmor/abstractions/start-container

index b06a84d3b66ec3d64091e8f30f247fc77feebc6c..eee0c2f2b2f2743c718e7fee798dd17d94728033 100644 (file)
@@ -15,6 +15,7 @@
   mount options=bind /dev/pts/ptmx/ -> /dev/ptmx/,
   mount options=bind /dev/pts/** -> /dev/**,
   mount options=(rw, make-slave) -> **,
+  mount options=(rw, make-rslave) -> **,
   mount fstype=debugfs,
   # allow pre-mount hooks to stage mounts under /var/lib/lxc/<container>/
   mount -> /var/lib/lxc/{**,},