]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-plamo: mount tmpfs on /dev/shm
authorTAMUKI Shoichi <tamuki@linet.gr.jp>
Wed, 19 Nov 2014 08:23:36 +0000 (17:23 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Nov 2014 22:15:12 +0000 (17:15 -0500)
Do mkdir $rootfs/dev/shm and then mount tmpfs on /dev/shm.

Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/templates/plamo.common.conf.in
templates/lxc-plamo.in

index 4f044c099ae2da533fc8a7c6ce38e76c040e1bd7..311558142d048de555d4b6fa37d13ec134e27e5d 100644 (file)
@@ -4,6 +4,7 @@ lxc.pts = 1024
 
 # Default mount
 lxc.mount.auto = proc sys cgroup
+lxc.mount.entry = none dev/shm tmpfs nosuid,nodev,noexec,mode=1777 0 0
 
 # Default capabilities
 lxc.cap.drop = sys_module mac_admin mac_override sys_time
index ce98c1a5f4abd80c3b41352401c3164265ecf019..5061056e8d3006b5cf284b4199411e32d72e8b89 100644 (file)
@@ -153,6 +153,7 @@ configure_plamo() {
   chmod    666 $rootfs/dev/random
   mknod -m 666 $rootfs/dev/urandom c 1 9
   mkdir -m 755 $rootfs/dev/pts
+  mkdir -m 755 $rootfs/dev/shm
   chmod    666 $rootfs/dev/tty
   chmod    600 $rootfs/dev/console
   mknod -m 666 $rootfs/dev/tty0 c 4 0