Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/
Date: Thu, 23 Jan 2014 18:04:23
Message-Id: 1390500113.4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a.williamh@OpenRC
1 commit: 4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 23 06:19:35 2014 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 23 18:01:53 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=4ee8e90f
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