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 3AC23138247 for ; Thu, 23 Jan 2014 06:21:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 839E2E0BA1; Thu, 23 Jan 2014 06:21:14 +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 1C875E0BA1 for ; Thu, 23 Jan 2014 06:21:14 +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 3271B33F853 for ; Thu, 23 Jan 2014 06:21:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id EE400183B3 for ; Thu, 23 Jan 2014 06:21:11 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1390458052.2d7d5fd37304b1b4ffe23cb294cf6dc5d612b199.vapier@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: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 2d7d5fd37304b1b4ffe23cb294cf6dc5d612b199 X-VCS-Branch: master Date: Thu, 23 Jan 2014 06:21:11 +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: dca06a3f-72cb-4385-b183-9aac769dbb80 X-Archives-Hash: 03fbbe5fc7e77568b8ac6f91c3aca2a6 commit: 2d7d5fd37304b1b4ffe23cb294cf6dc5d612b199 Author: Mike Frysinger gentoo org> AuthorDate: Thu Jan 23 06:19:35 2014 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Jan 23 06:20:52 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=2d7d5fd3 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