From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 29 Oct 2009 17:12:07 +0000 Subject: Re: devtmpfs default permissions Message-Id: List-Id: References: <1256824970.30238.25.camel@mjollnir> In-Reply-To: <1256824970.30238.25.camel@mjollnir> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On Thursday, October 29, 2009, Greg KH wrote: > On Thu, Oct 29, 2009 at 03:02:50PM +0100, Mark Rosenstand wrote: >> >> I've been using the devtmpfs patch for 2.6.31 and recently mainline >> 2.6.32-rc5.  I've noticed that /dev now have default tmpfs permissions, >> i.e. 1777. >> >> One can chmod the directory, but would it not make sense to use a more >> less permissive mode (e.g. 0755) by default? Yeah, sounds good. > I think the patch sent by Kay to the linux-kernel mailing list yesterday > will solve this problem.  It uses the default umask instead. > > Can you test it out to verify this? I'll prepare a patch to fix that, we need to pass "mode55" to the mount command, to set the tmpfs root directory mode. Thanks, Kay