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 A78F913838B for ; Sat, 4 Oct 2014 03:42:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA873E08B8; Sat, 4 Oct 2014 03:42:08 +0000 (UTC) Received: from mail143c7.megamailservers.com (mail121c7-2520.megamailservers.com [69.49.98.23]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C658E083B for ; Sat, 4 Oct 2014 03:42:06 +0000 (UTC) X-POP-User: admin@sys-concept.com X-VIP: 69.49.109.100 Received: from syscon7.localdomain (S01060050da7ae68c.ed.shawcable.net [68.149.90.13]) by mail143c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id s943g4dV014512 for ; Fri, 3 Oct 2014 23:42:05 -0400 Received: by syscon7.localdomain (Postfix, from userid 1000) id 75A4C200634; Fri, 3 Oct 2014 21:42:18 -0600 (MDT) Date: Fri, 3 Oct 2014 21:42:18 -0600 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] /dev/shm mode 1777 Message-ID: <20141004034218.GB1792@syscon7> References: <20141004022250.GA1792@syscon7> 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 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-CTCH-RefID: str=0001.0A02020A.542F6C8E.0011,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.1 cv=cZDr8BzM c=1 sm=1 tr=0 a=C3ZDv51cNVt4vJz/79I2xQ==:117 a=C3ZDv51cNVt4vJz/79I2xQ==:17 a=SDcUNfBxAAAA:8 a=BDKbP5mgAAAA:8 a=Unq3plm5DvEA:10 a=M1kyBYkWWGkA:10 a=nDghuxUhq_wA:10 a=8nJEP1OIZ-IA:10 a=pGLkceISAAAA:8 a=UcAIJYPDG8NaRejoBE0A:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 X-Origin-Country: CA X-Archives-Salt: 305bd7dd-bc64-47f6-93e9-f12eec29e877 X-Archives-Hash: 53da0f71baede76d63974f1efdcc2bec 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" -- Joseph