From c4222aca03fbf9c14edf7167880952b9a7ad5c4e Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 9 Apr 2014 10:53:32 +0000 Subject: [PATCH] Change shm mode to 1777 Fixes #5126 Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- nsinit/mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsinit/mount.go b/nsinit/mount.go index 3b0cf13b..dd6b1c8a 100644 --- a/nsinit/mount.go +++ b/nsinit/mount.go @@ -208,7 +208,7 @@ func mountSystem(rootfs string, mountLabel string) error { }{ {source: "proc", path: filepath.Join(rootfs, "proc"), device: "proc", flags: defaultMountFlags}, {source: "sysfs", path: filepath.Join(rootfs, "sys"), device: "sysfs", flags: defaultMountFlags}, - {source: "shm", path: filepath.Join(rootfs, "dev", "shm"), device: "tmpfs", flags: defaultMountFlags, data: label.FormatMountLabel("mode=1755,size=65536k", mountLabel)}, + {source: "shm", path: filepath.Join(rootfs, "dev", "shm"), device: "tmpfs", flags: defaultMountFlags, data: label.FormatMountLabel("mode=1777,size=65536k", mountLabel)}, {source: "devpts", path: filepath.Join(rootfs, "dev", "pts"), device: "devpts", flags: syscall.MS_NOSUID | syscall.MS_NOEXEC, data: label.FormatMountLabel("newinstance,ptmxmode=0666,mode=620,gid=5", mountLabel)}, } { if err := os.MkdirAll(m.path, 0755); err != nil && !os.IsExist(err) {