1 |
commit: 2d7d5fd37304b1b4ffe23cb294cf6dc5d612b199 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 23 06:19:35 2014 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 23 06:20:52 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=2d7d5fd3 |
7 |
|
8 |
devfs: explicitly mount /dev/shm with mode=1777 |
9 |
|
10 |
The current code relies on the tmpfs mount defaulting to 1777 |
11 |
permissions. If it doesn't, things break badly. |
12 |
|
13 |
This can come up when tmpfs is disabled in the kernel and ramfs |
14 |
is being used instead (the kernel will alias tmpfs to ramfs). |
15 |
The default permissions for ramfs is 0755. |
16 |
|
17 |
--- |
18 |
init.d/devfs.in | 2 +- |
19 |
1 file changed, 1 insertion(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/init.d/devfs.in b/init.d/devfs.in |
22 |
index 7fba882..ae5f03b 100644 |
23 |
--- a/init.d/devfs.in |
24 |
+++ b/init.d/devfs.in |
25 |
@@ -71,7 +71,7 @@ seed_dev() |
26 |
for x in \ |
27 |
"mqueue /dev/mqueue 1777 ,nodev mqueue" \ |
28 |
"devpts /dev/pts 0755 ,gid=5,mode=0620 devpts" \ |
29 |
- "tmpfs /dev/shm 1777 ,nodev shm" \ |
30 |
+ "tmpfs /dev/shm 1777 ,nodev,mode=1777 shm" \ |
31 |
; do |
32 |
set -- $x |
33 |
grep -Eq "[[:space:]]+$1$" /proc/filesystems || continue |