]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
apparmor: allow binding /run/{,lock/} -> /var/run/{,lock/} 794/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 2 Feb 2016 08:13:04 +0000 (09:13 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 2 Feb 2016 08:18:11 +0000 (09:18 +0100)
Some systems need to be able to bind-mount /run to /var/run
and /run/lock to /var/run/lock. (Tested with opensuse 13.1
containers migrated from openvz.)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
config/apparmor/abstractions/container-base.in

index 1121256d7fff2b7e52080308068a1aef9df1014f..3a001d83ad1b5a1c6a559ea92afd5e6176ef5435 100644 (file)
   # allow bind mount of /lib/init/fstab for lxcguest
   mount options=(rw, bind) /lib/init/fstab.lxc/ -> /lib/init/fstab/,
 
+  # allow bind mounts of /run/{,lock} to /var/run/{,lock}
+  mount options=(rw, bind) /run/ -> /var/run/,
+  mount options=(rw, bind) /run/lock/ -> /var/lock/,
+
   # deny writes in /proc/sys/fs but allow binfmt_misc to be mounted
   mount fstype=binfmt_misc -> /proc/sys/fs/binfmt_misc/,
   deny @{PROC}/sys/fs/** wklx,