Date: Wed, 14 Dec 2005 00:31:52 +0100 From: "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de> To: freebsd-stable@freebsd.org Subject: Re: devfs doesn't set access rights Message-ID: <439F59E8.9050505@gmx.de> In-Reply-To: <439F4AA4.5070500@earthmagic.org> References: <439EF8B5.4030702@gmx.de> <20051213164947.GA17705@odin.ac.hmc.edu> <20051213180418.GA20852@slackbox.xs4all.nl> <20051213192143.GA5926@odin.ac.hmc.edu> <439F24B2.1080408@gmx.de> <439F4AA4.5070500@earthmagic.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I agree that a more flexible approach is generally better, but since it's not necessary I don't want to create an extra entry in my /etc/usbd.conf (one more file to worry about during mergemaster). Thus I think the best solution would be to dump devfs.conf and /etc/rc.d/devfs entirely (or leave it optional for backwards compatibility) and give devfs the ability to create links. I have a dislike for inconsistent solutions and I think most people here share this dislike. It's just what happens when software grows. Sooner or later you get to the point where you should throw away 80% of what's there and turn the rest into something that does what needs to be done. Johny Mattsson wrote: > Note that while for you it might be sufficient to have a hard coded link > from /dev/pilot to /dev/ttyU0, that is not necessarily the case if you > have multiple USB serial gadgets. > The way I handled it is by using an entry in /etc/usbd.conf: > > # > # Fixup permissions for Palm Handheld ucom devices > # (set here and not in devfs.rules since we only want to apply > # the change to Palm com ports, not all USB com ports) > device "PalmHandheld" > devname "ucom[0-9]+" > vendor 0x0830 > attach "/bin/chmod 0666 /dev/${DEVNAME} ; /bin/ln -s > /dev/${DEVNAME} /dev/pilot" > detach "rm -f /dev/pilot > > > Having said that, it would be great to be able to create links from > devfs.rules - I'd certainly use it for my /dev/cdrom entry! > > Cheers, > /Johny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439F59E8.9050505>