From: Dennis Schridde Date: Thu, 11 Jun 2015 13:21:19 +0000 (+0200) Subject: Fix creation of dev/mqueue and dev/shm on Gentoo X-Git-Tag: lxc-1.0.8~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac8b8987ea8983dd70eb4547d4fb4701f14ee74;p=thirdparty%2Flxc.git Fix creation of dev/mqueue and dev/shm on Gentoo The dev/mqueue and dev/shm directories do not exist when using lxc.autodev, thus they have to be created upon mount. Signed-off-by: Dennis Schridde --- diff --git a/config/templates/gentoo.moresecure.conf.in b/config/templates/gentoo.moresecure.conf.in index 432a9fb6f..709f23877 100644 --- a/config/templates/gentoo.moresecure.conf.in +++ b/config/templates/gentoo.moresecure.conf.in @@ -7,8 +7,8 @@ # do not mount sysfs, see http://blog.bofh.it/debian/id_413 # lxc.mount.entry=sys sys sysfs rw 0 0 lxc.mount.entry=proc proc proc ro,nodev,noexec,nosuid 0 0 -lxc.mount.entry=mqueue dev/mqueue mqueue rw,nodev,noexec,nosuid 0 0 -lxc.mount.entry=shm dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0 +lxc.mount.entry=mqueue dev/mqueue mqueue rw,nodev,noexec,nosuid,create=dir 0 0 +lxc.mount.entry=shm dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,create=dir 0 0 lxc.mount.entry=run run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0 # console access