Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbZIRVT3 (ORCPT ); Fri, 18 Sep 2009 17:19:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752398AbZIRVT1 (ORCPT ); Fri, 18 Sep 2009 17:19:27 -0400 Received: from an-out-0708.google.com ([209.85.132.250]:21424 "EHLO an-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbZIRVT0 convert rfc822-to-8bit (ORCPT ); Fri, 18 Sep 2009 17:19:26 -0400 MIME-Version: 1.0 In-Reply-To: References: <20090917185306.GA28635@elte.hu> <1253238637.4071.10.camel@yio.site> From: Kay Sievers Date: Fri, 18 Sep 2009 23:19:15 +0200 Message-ID: Subject: Re: [bug] /etc/profile: line 30: /dev/null: Permission denied To: Linus Torvalds Cc: "Eric W. Biederman" , Ingo Molnar , Greg KH , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 889 Lines: 26 On Fri, Sep 18, 2009 at 23:09, Linus Torvalds wrote: > On Fri, 18 Sep 2009, Eric W. Biederman wrote: >> >> As a special case you can implement this much >> more simply in devtmpfs_mount just do: >> >> int devtmpfs_mount(const char *mountpoint) >> { >>         sys_mount("none", "dev", "devtmpfs", MS_SILENT, NULL); >>       sys_chmod("dev/console", 0666); >>       sys_chmod("dev/tty", 0666); >>       sys_chmod("dev/null", 0666); >>       sys_chmod("dev/zero", 0666); >> } > > Yeah, I think that's the way to go. Are we sure about console? It's not what udev does today, it stays as 0600. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/