]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: gentoo.common: Add /dev/shm tmpfs mount entry
authorMarkos Chandras <hwoarang@gentoo.org>
Thu, 12 Mar 2015 20:52:11 +0000 (20:52 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 28 Aug 2015 22:02:15 +0000 (18:02 -0400)
/dev/shm needs to be mounted as tmpfs. It's needed by python
and possibly other packages.

Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
config/templates/gentoo.common.conf.in

index f29db504c3ca4479b11c34134ab5337494e4b279..8bf2f8b07504b4a725b3a5c93467438869ab17c5 100644 (file)
@@ -56,3 +56,7 @@ lxc.cgroup.devices.allow = c 10:232 rwm
 # Blacklist some syscalls which are not safe in privileged
 # containers
 lxc.seccomp = @LXCTEMPLATECONFIG@/common.seccomp
+
+# /dev/shm needs to be mounted as tmpfs. It's needed by python (bug #496328)
+# and possibly other packages.
+lxc.mount.entry = none dev/shm tmpfs rw,nosuid,nodev,create=dir