lkml.org 
[lkml]   [2009]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [bug] /etc/profile: line 30: /dev/null: Permission denied
On Fri, Sep 18, 2009 at 23:09, Linus Torvalds
<torvalds@linux-foundation.org> 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/

\
 
 \ /
  Last update: 2009-09-18 23:21    [W:0.098 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site