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 3B676138247 for ; Thu, 23 Jan 2014 18:04:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3DCFE0BBF; Thu, 23 Jan 2014 18:04:21 +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 6EAB9E0BBF for ; Thu, 23 Jan 2014 18:04:21 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 68A5533F386 for ; Thu, 23 Jan 2014 18:04:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 0137C187B5 for ; Thu, 23 Jan 2014 18:04:19 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1390500113.4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/devfs.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a X-VCS-Branch: master Date: Thu, 23 Jan 2014 18:04:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 452f28ac-8193-461d-9a54-3cb73d08ddb9 X-Archives-Hash: d00d7aa35d1d50c20cc6920df5c243b1 commit: 4ee8e90ffed3ab9f9627f7bbaa48f514fd520f2a Author: Mike Frysinger gentoo org> AuthorDate: Thu Jan 23 06:19:35 2014 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Jan 23 18:01:53 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=4ee8e90f devfs: explicitly mount /dev/shm with mode=1777 The current code relies on the tmpfs mount defaulting to 1777 permissions. If it doesn't, things break badly. This can come up when tmpfs is disabled in the kernel and ramfs is being used instead (the kernel will alias tmpfs to ramfs). The default permissions for ramfs is 0755. --- init.d/devfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/devfs.in b/init.d/devfs.in index 7fba882..ae5f03b 100644 --- a/init.d/devfs.in +++ b/init.d/devfs.in @@ -71,7 +71,7 @@ seed_dev() for x in \ "mqueue /dev/mqueue 1777 ,nodev mqueue" \ "devpts /dev/pts 0755 ,gid=5,mode=0620 devpts" \ - "tmpfs /dev/shm 1777 ,nodev shm" \ + "tmpfs /dev/shm 1777 ,nodev,mode=1777 shm" \ ; do set -- $x grep -Eq "[[:space:]]+$1$" /proc/filesystems || continue