public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] /dev/shm mode 1777
Date: Fri, 3 Oct 2014 21:42:18 -0600	[thread overview]
Message-ID: <20141004034218.GB1792@syscon7> (raw)
In-Reply-To: <CAJ0EP42v73-9XC_8eUgURVAVqiBmkreK6-kEt-cWfeBsxoEPVw@mail.gmail.com>

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


  reply	other threads:[~2014-10-04  3:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2014-10-04  3:48     ` Joseph
2014-10-04 15:43     ` Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141004034218.GB1792@syscon7 \
    --to=syscon780@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox