public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] /dev/shm  mode 1777
@ 2014-10-04  2:22 Joseph
  2014-10-04  3:00 ` Mike Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Joseph @ 2014-10-04  2:22 UTC (permalink / raw
  To: gentoo-user

I'm getting an error message during emerge:
 * configure has detected that the sem_open function is broken.
 * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
 * ERROR: dev-lang/python-3.3.5-r1::gentoo failed (configure phase):

my /dev/shm is mounted as 
drwxr-xr-x 17 root root          4020 Oct  3 08:57 shm

and it should be:
drwxrwxrwt  2 root root           100 Sep 29 09:25 shm

I've already change in fstab:
from:
shm			/dev/shm	devtmpfs	nodev,nosuid,noexec	0 0

to:
shm 			/dev/shm  	tmpfs 		defaults,nodev,nosuid,mode=1777 0 0

Is it OK to run:
umount shm
mount shm

This is a remount system, so I want to make sure I'm not making a mistake.

-- 
Joseph


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] /dev/shm mode 1777
  2014-10-04  2:22 [gentoo-user] /dev/shm mode 1777 Joseph
@ 2014-10-04  3:00 ` Mike Gilbert
  2014-10-04  3:42   ` Joseph
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Gilbert @ 2014-10-04  3:00 UTC (permalink / raw
  To: gentoo-user

On Fri, Oct 3, 2014 at 10:22 PM, Joseph <syscon780@gmail.com> wrote:
> I'm getting an error message during emerge:
> * configure has detected that the sem_open function is broken.
> * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
> * ERROR: dev-lang/python-3.3.5-r1::gentoo failed (configure phase):
>
> my /dev/shm is mounted as drwxr-xr-x 17 root root          4020 Oct  3 08:57
> shm
>
> and it should be:
> drwxrwxrwt  2 root root           100 Sep 29 09:25 shm
>
> I've already change in fstab:
> from:
> shm                     /dev/shm        devtmpfs        nodev,nosuid,noexec
> 0 0
>
> to:
> shm                     /dev/shm        tmpfs
> defaults,nodev,nosuid,mode=1777 0 0
>
> Is it OK to run:
> umount shm
> mount shm
>
> This is a remount system, so I want to make sure I'm not making a mistake.
>

Yes, that should be fairly safe to run. The only risk is if you have
some application running which has files open on it; but umount should
give you an error in that case.

Also, you can/should remove that fstab entry entirely once you have
remounted it; both openrc and systemd will automatically mount
/dev/shm with proper permissions if it is missing from fstab.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] /dev/shm mode 1777
  2014-10-04  3:00 ` Mike Gilbert
@ 2014-10-04  3:42   ` Joseph
  2014-10-04  3:48     ` Joseph
  2014-10-04 15:43     ` Mike Gilbert
  0 siblings, 2 replies; 5+ messages in thread
From: Joseph @ 2014-10-04  3:42 UTC (permalink / raw
  To: gentoo-user

On 10/03/14 23:00, Mike Gilbert wrote:
>On Fri, Oct 3, 2014 at 10:22 PM, Joseph <syscon780@gmail.com> wrote:
>> I'm getting an error message during emerge:
>> * configure has detected that the sem_open function is broken.
>> * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
>> * ERROR: dev-lang/python-3.3.5-r1::gentoo failed (configure phase):
>>
>> my /dev/shm is mounted as drwxr-xr-x 17 root root          4020 Oct  3 08:57
>> shm
>>
>> and it should be:
>> drwxrwxrwt  2 root root           100 Sep 29 09:25 shm
>>
>> I've already change in fstab:
>> from:
>> shm                     /dev/shm        devtmpfs        nodev,nosuid,noexec
>> 0 0
>>
>> to:
>> shm                     /dev/shm        tmpfs
>> defaults,nodev,nosuid,mode=1777 0 0
>>
>> Is it OK to run:
>> umount shm
>> mount shm
>>
>> This is a remount system, so I want to make sure I'm not making a mistake.
>>
>
>Yes, that should be fairly safe to run. The only risk is if you have
>some application running which has files open on it; but umount should
>give you an error in that case.
>
>Also, you can/should remove that fstab entry entirely once you have
>remounted it; both openrc and systemd will automatically mount
>/dev/shm with proper permissions if it is missing from fstab.

Will it?
In my kernel confg I have:

grep CONFIG_DEVTMPFS  /usr/src/linux/.config 
CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set

should I set "CONFIG_DEVTMPFS_MOUNT=y"

-- 
Joseph


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] /dev/shm mode 1777
  2014-10-04  3:42   ` Joseph
@ 2014-10-04  3:48     ` Joseph
  2014-10-04 15:43     ` Mike Gilbert
  1 sibling, 0 replies; 5+ messages in thread
From: Joseph @ 2014-10-04  3:48 UTC (permalink / raw
  To: gentoo-user

On 10/03/14 21:42, Joseph wrote:
[snip]
>>
>>Yes, that should be fairly safe to run. The only risk is if you have
>>some application running which has files open on it; but umount should
>>give you an error in that case.
>>
>>Also, you can/should remove that fstab entry entirely once you have
>>remounted it; both openrc and systemd will automatically mount
>>/dev/shm with proper permissions if it is missing from fstab.
>
>Will it?
>In my kernel confg I have:
>
>grep CONFIG_DEVTMPFS  /usr/src/linux/.config
>CONFIG_DEVTMPFS=y
># CONFIG_DEVTMPFS_MOUNT is not set
>
>should I set "CONFIG_DEVTMPFS_MOUNT=y"

or should I just run:
chmod 1777 /dev/shm

-- 
Joseph


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] /dev/shm mode 1777
  2014-10-04  3:42   ` Joseph
  2014-10-04  3:48     ` Joseph
@ 2014-10-04 15:43     ` Mike Gilbert
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Gilbert @ 2014-10-04 15:43 UTC (permalink / raw
  To: gentoo-user

On Fri, Oct 3, 2014 at 11:42 PM, Joseph <syscon780@gmail.com> wrote:
> On 10/03/14 23:00, Mike Gilbert wrote:
>>
>> On Fri, Oct 3, 2014 at 10:22 PM, Joseph <syscon780@gmail.com> wrote:
>>>
>>> I'm getting an error message during emerge:
>>> * configure has detected that the sem_open function is broken.
>>> * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
>>> * ERROR: dev-lang/python-3.3.5-r1::gentoo failed (configure phase):
>>>
>>> my /dev/shm is mounted as drwxr-xr-x 17 root root          4020 Oct  3
>>> 08:57
>>> shm
>>>
>>> and it should be:
>>> drwxrwxrwt  2 root root           100 Sep 29 09:25 shm
>>>
>>> I've already change in fstab:
>>> from:
>>> shm                     /dev/shm        devtmpfs
>>> nodev,nosuid,noexec
>>> 0 0
>>>
>>> to:
>>> shm                     /dev/shm        tmpfs
>>> defaults,nodev,nosuid,mode=1777 0 0
>>>
>>> Is it OK to run:
>>> umount shm
>>> mount shm
>>>
>>> This is a remount system, so I want to make sure I'm not making a
>>> mistake.
>>>
>>
>> Yes, that should be fairly safe to run. The only risk is if you have
>> some application running which has files open on it; but umount should
>> give you an error in that case.
>>
>> Also, you can/should remove that fstab entry entirely once you have
>> remounted it; both openrc and systemd will automatically mount
>> /dev/shm with proper permissions if it is missing from fstab.
>
>
> Will it?
> In my kernel confg I have:
>
> grep CONFIG_DEVTMPFS  /usr/src/linux/.config CONFIG_DEVTMPFS=y
> # CONFIG_DEVTMPFS_MOUNT is not set
>
> should I set "CONFIG_DEVTMPFS_MOUNT=y"
>

It has nothing to do with that kernel option.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-04 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-04  2:22 [gentoo-user] /dev/shm mode 1777 Joseph
2014-10-04  3:00 ` Mike Gilbert
2014-10-04  3:42   ` Joseph
2014-10-04  3:48     ` Joseph
2014-10-04 15:43     ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox