Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 1998 13:11:16 -0800 (PST)
From:      Simon Shapiro <shimon@simon-shapiro.org>
To:        Julian Elischer <julian@whistle.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: devfs persistence
Message-ID:  <XFMail.980217131116.shimon@simon-shapiro.org>
In-Reply-To: <34E9F331.773C2448@whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 17-Feb-98 Julian Elischer wrote:
> Simon Shapiro wrote:
>> 
>>
>> > you cannot mknod. only the drivers can make nodes.
>> > (though there are ways to solve some problems you might normally
>> > try use mknod for)
>> 
>> Ah, too bad.  This means I cannot make stupid mistakes anymore?
> 
> in theory.. in practice you can still rm /dev/rsd0s1a  :)

Now, this is idiotic, which is more severe than stupid. :-))

>> >> Oh, a /dev DEVFS mounted, can it create links and/or symlinks?
>> >> Why not?
>> >
>> > The user can use ln (with or without -s)
>> 
>> Can the user do mkdir in /dev?
> yes
> The operations a user can do are:
> 
> ln
> ln -s
> rmdir
> mv
> rm
> chown
> chmod
> chgrp
> (?touch?)
> 
>> 
>> So, if I create a file /etc/devfs.conf with something like :
>> 
>> # Sample /etc/devfs.conf
>> 
> [stuff removed]
> 
> yes

So, where is the problem?  I see that you can have a simple, pure DEVFS,
and a silly shell script can provide persistance and a user can still shoot
him/herself in the foot.  So all the Unix requirements are met (simple,
script modifyable, and self-destructable :-).

I say, go for it.


----------


Sincerely Yours, 

Simon Shapiro
Shimon@Simon-Shapiro.ORG                      Voice:   503.708.7858

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980217131116.shimon>