]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
apparmor: Sync with current git master
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 14 Oct 2015 20:50:14 +0000 (13:50 -0700)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 14 Oct 2015 20:50:14 +0000 (13:50 -0700)
This makes stable-1.0, stable-1.1 and master all be in sync with regard
to apparmor. This has the nice added benefit of fixing an apparmor
regression with /dev/pts handling in some older kernels.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
config/apparmor/abstractions/start-container
config/apparmor/profiles/lxc-default-with-nesting

index e36196884a485edb16d7f4001fd8ce31ec93ad55..b06a84d3b66ec3d64091e8f30f247fc77feebc6c 100644 (file)
@@ -13,6 +13,7 @@
   mount -> /usr/lib/lxc/{**,},
   mount fstype=devpts -> /dev/pts/,
   mount options=bind /dev/pts/ptmx/ -> /dev/ptmx/,
+  mount options=bind /dev/pts/** -> /dev/**,
   mount options=(rw, make-slave) -> **,
   mount fstype=debugfs,
   # allow pre-mount hooks to stage mounts under /var/lib/lxc/<container>/
index bd7078a8476dd23dda166235e2853932a3166f5d..66aa5fd7d5d3db8d0b8fccbeb7e9d6e1d05d8a79 100644 (file)
@@ -12,5 +12,5 @@ profile lxc-container-default-with-nesting flags=(attach_disconnected,mediate_de
   deny /dev/.lxc/sys/** rw,
   mount fstype=proc -> /var/cache/lxc/**,
   mount fstype=sysfs -> /var/cache/lxc/**,
-  mount options=(rw,bind) /var/cache/lxc/**/dev/shm/ -> /var/cache/lxc/**/run/shm/,
+  mount options=(rw,bind),
 }