aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-01-23 01:19:35 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-01-23 12:01:53 -0600
commit4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a (patch)
tree9d1b170952e1869b74f2535dfc7e7c508d6ebbcd
parent2cc6ef723a7395993362f8015cd8aab6430301a9 (diff)
devfs: explicitly mount /dev/shm with mode=1777
The current code relies on the tmpfs mount defaulting to 1777 permissions. If it doesn't, things break badly. This can come up when tmpfs is disabled in the kernel and ramfs is being used instead (the kernel will alias tmpfs to ramfs). The default permissions for ramfs is 0755.
-rw-r--r--init.d/devfs.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/devfs.in b/init.d/devfs.in
index 7fba8820..ae5f03bf 100644
--- a/init.d/devfs.in
+++ b/init.d/devfs.in
@@ -71,7 +71,7 @@ seed_dev()
for x in \
"mqueue /dev/mqueue 1777 ,nodev mqueue" \
"devpts /dev/pts 0755 ,gid=5,mode=0620 devpts" \
- "tmpfs /dev/shm 1777 ,nodev shm" \
+ "tmpfs /dev/shm 1777 ,nodev,mode=1777 shm" \
; do
set -- $x
grep -Eq "[[:space:]]+$1$" /proc/filesystems || continue