From 4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 23 Jan 2014 01:19:35 -0500 Subject: 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. --- init.d/devfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/devfs.in') 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 -- cgit v1.2.3