devfs doesn't set access rights

Roland Smith rsmith at xs4all.nl
Tue Dec 13 12:30:10 PST 2005


On Tue, Dec 13, 2005 at 08:44:50PM +0100, [LoN]Kamikaze wrote:
> Well, here are my conclusions.
> 
> 1)
> The manpage for devfs.rules should mention that you have to set
> 
> devfs_system_ruleset="yourruleset"
> 
> in /etc/rc.conf . I didn't see it anywhere.

Agreed. I've posted a patch in this thread for that. If there are no
comments, I'll send-pr it.
 
<snip>
> 3)
> There is one kind of thing I cannot do in /etc/devfs.rules, creating
> links. So I am still doing this in /etc/devfs.conf (links don't cause
> race conditions anyway, I hope).

Maybe devd could be used for that.

> One would think that "link ttyU0 pilot" would simply be translated to
> "ln -s /dev/ttyU0 /dev/pilot" which would simply create the link and it
> would work as soon as a ttyU0 device (my PDA) is there. But instead it
> checks weather the device exists (of course it doesn't since I didn't
> press the hotsync button during boot) and omits the creation of the link.
> 
> So either the behaviour of /etc/rc.d/devfs has to be changed or it has
> to be dumped entirely and /sbin/devfs has to implement a way to create
> links (the solution I would prefer).

And maybe there should be a combination with devd?

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051213/c3f83472/attachment.bin


More information about the freebsd-stable mailing list