Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev/shm mode 1777
Date: Sat, 04 Oct 2014 03:42:14
Message-Id: 20141004034218.GB1792@syscon7
In Reply to: Re: [gentoo-user] /dev/shm mode 1777 by Mike Gilbert
1 On 10/03/14 23:00, Mike Gilbert wrote:
2 >On Fri, Oct 3, 2014 at 10:22 PM, Joseph <syscon780@×××××.com> wrote:
3 >> I'm getting an error message during emerge:
4 >> * configure has detected that the sem_open function is broken.
5 >> * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
6 >> * ERROR: dev-lang/python-3.3.5-r1::gentoo failed (configure phase):
7 >>
8 >> my /dev/shm is mounted as drwxr-xr-x 17 root root 4020 Oct 3 08:57
9 >> shm
10 >>
11 >> and it should be:
12 >> drwxrwxrwt 2 root root 100 Sep 29 09:25 shm
13 >>
14 >> I've already change in fstab:
15 >> from:
16 >> shm /dev/shm devtmpfs nodev,nosuid,noexec
17 >> 0 0
18 >>
19 >> to:
20 >> shm /dev/shm tmpfs
21 >> defaults,nodev,nosuid,mode=1777 0 0
22 >>
23 >> Is it OK to run:
24 >> umount shm
25 >> mount shm
26 >>
27 >> This is a remount system, so I want to make sure I'm not making a mistake.
28 >>
29 >
30 >Yes, that should be fairly safe to run. The only risk is if you have
31 >some application running which has files open on it; but umount should
32 >give you an error in that case.
33 >
34 >Also, you can/should remove that fstab entry entirely once you have
35 >remounted it; both openrc and systemd will automatically mount
36 >/dev/shm with proper permissions if it is missing from fstab.
37
38 Will it?
39 In my kernel confg I have:
40
41 grep CONFIG_DEVTMPFS /usr/src/linux/.config
42 CONFIG_DEVTMPFS=y
43 # CONFIG_DEVTMPFS_MOUNT is not set
44
45 should I set "CONFIG_DEVTMPFS_MOUNT=y"
46
47 --
48 Joseph

Replies

Subject Author
Re: [gentoo-user] /dev/shm mode 1777 Joseph <syscon780@×××××.com>
Re: [gentoo-user] /dev/shm mode 1777 Mike Gilbert <floppym@g.o>