Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Mar 2002 11:16:06 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        cjclark@alum.mit.edu, current@FreeBSD.ORG
Subject:   Re: devfs(5) Permissions 
Message-ID:  <81593.1015236966@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 04 Mar 2002 10:10:20 GMT." <20020304101020.GA61840@walton.maths.tcd.ie> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20020304101020.GA61840@walton.maths.tcd.ie>, David Malone writes:
>On Sun, Mar 03, 2002 at 09:26:11PM +0100, Poul-Henning Kamp wrote:
>> >I presume you'd push the rules in using sysclt or did you have
>> >something more filesystem like in mind?
>> 
>> Nope, just a sysctl.
>
>I guess then you just need a sysctl which lets you read the rules
>for a given devfs mount point and another which lets you set the
>rules for a given defvs mount point. I don't know if we also need
>a global ruleset which is applied if the mount point speficic rules
>fail to match.

True, forgot that.  In that case lets make them a mount option using
mux@ new nmount(2) systemcall.

>The rules should be able to chmod and chown the nodes. Should it
>also be able to prevent the creation matching nodes also?

Yes.

>You mentioned matching on the names drivers and nodes. Are there
>any other sorts of matching we are likely to need?

Ideally I would want to match on names, driver names and types,
ie:  name=="ttyd0", driver=="sio" and type=="tty", but I think
the important thing here is to make it exensible in the future.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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?81593.1015236966>