devfs doesn't set access rights

[LoN]Kamikaze LoN_Kamikaze at gmx.de
Tue Dec 13 11:45:16 PST 2005


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.

2)
I have transferred all the rules in /etc/devfs.conf to /etc/devfs.rules,
because I don't like to have 2 solutions for one task and because of the
race condition mentioned in this list.

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).

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).

- Dominic


More information about the freebsd-stable mailing list