From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8825013838B for ; Sat, 4 Oct 2014 15:43:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CD27E08AD; Sat, 4 Oct 2014 15:43:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE2DCE087B for ; Sat, 4 Oct 2014 15:43:14 +0000 (UTC) Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id B1A873402A2 for ; Sat, 4 Oct 2014 15:43:13 +0000 (UTC) Received: by mail-ig0-f172.google.com with SMTP id r2so700030igi.17 for ; Sat, 04 Oct 2014 08:43:12 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.42.101.199 with SMTP id f7mr513955ico.4.1412437392053; Sat, 04 Oct 2014 08:43:12 -0700 (PDT) Received: by 10.64.111.135 with HTTP; Sat, 4 Oct 2014 08:43:11 -0700 (PDT) In-Reply-To: <20141004034218.GB1792@syscon7> References: <20141004022250.GA1792@syscon7> <20141004034218.GB1792@syscon7> Date: Sat, 4 Oct 2014 11:43:11 -0400 Message-ID: Subject: Re: [gentoo-user] /dev/shm mode 1777 From: Mike Gilbert To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 0e18c118-220f-4443-b166-cd33a4c969fb X-Archives-Hash: a142354aa140e7468b43a4a78ae90274 On Fri, Oct 3, 2014 at 11:42 PM, Joseph wrote: > On 10/03/14 23:00, Mike Gilbert wrote: >> >> On Fri, Oct 3, 2014 at 10:22 PM, Joseph 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.