Date: Tue, 13 Dec 2005 20:44:50 +0100 From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> To: freebsd-stable@freebsd.org Subject: Re: devfs doesn't set access rights Message-ID: <439F24B2.1080408@gmx.de> In-Reply-To: <20051213192143.GA5926@odin.ac.hmc.edu> References: <439EF8B5.4030702@gmx.de> <20051213164947.GA17705@odin.ac.hmc.edu> <20051213180418.GA20852@slackbox.xs4all.nl> <20051213192143.GA5926@odin.ac.hmc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439F24B2.1080408>