Re: devfs doesn't set access rights

2005-12-13 Thread Anish Mistry
On Tuesday 13 December 2005 05:26 pm, Johny Mattsson wrote: > On 12/14/05 06:44, [LoN]Kamikaze wrote: > > 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). > > >

Re: devfs doesn't set access rights

2005-12-13 Thread Roland Smith
On Wed, Dec 14, 2005 at 12:31:52AM +0100, [LoN]Kamikaze wrote: > 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). IIRC, usbd is/will be deprecate

Re: devfs doesn't set access rights

2005-12-13 Thread [LoN]Kamikaze
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

Re: devfs doesn't set access rights

2005-12-13 Thread Brooks Davis
On Tue, Dec 13, 2005 at 10:31:21PM +0100, Roland Smith wrote: > On Tue, Dec 13, 2005 at 12:55:39PM -0800, Brooks Davis wrote: > > > > What's wrong with the EXAMPLES section in devfs(8)? > > > > It's fine. Referring to devfs(8) was poor word choice on my part. I > > meant the system as a whole i

Re: devfs doesn't set access rights

2005-12-13 Thread Johny Mattsson
On 12/14/05 06:44, [LoN]Kamikaze wrote: 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

Re: devfs doesn't set access rights

2005-12-13 Thread Marwan Burelle
On Tue, Dec 13, 2005 at 12:23:26PM -0500, Anish Mistry wrote: > > There maybe a better way, but "it works"© ;) > You should be using /etc/devfs.rules > > Search the mailing list for examples and setup. Yes, I know, some month ago I wrote a little documentation (in french [1]) for using USB keys o

Re: devfs doesn't set access rights

2005-12-13 Thread Roland Smith
On Tue, Dec 13, 2005 at 12:55:39PM -0800, Brooks Davis wrote: > > What's wrong with the EXAMPLES section in devfs(8)? > > It's fine. Referring to devfs(8) was poor word choice on my part. I > meant the system as a whole including devfs.rules. > > > > any documentation of the rc.conf variables

Re: devfs doesn't set access rights

2005-12-13 Thread Brooks Davis
On Tue, Dec 13, 2005 at 09:22:34PM +0100, Roland Smith wrote: > On Tue, Dec 13, 2005 at 11:21:43AM -0800, Brooks Davis wrote: > > > > > This is normal. devfs.conf is for boot only, you need devfs.rules for > > > > runtime. Unfortunatly, the documentation of this fact and the > > > > docuementati

Re: devfs doesn't set access rights

2005-12-13 Thread Doug Barton
I hacked together the current mess over two and a half years ago for one simple reason, so that the functionality that used to be in the system prior to rcNG would still be there. Since then, we've had roughly 18 rounds of this same discussion, but no one has actually stepped up to do the work of c

Re: devfs doesn't set access rights

2005-12-13 Thread Roland Smith
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 thr

Re: devfs doesn't set access rights

2005-12-13 Thread Roland Smith
On Tue, Dec 13, 2005 at 11:21:43AM -0800, Brooks Davis wrote: > > > This is normal. devfs.conf is for boot only, you need devfs.rules for > > > runtime. Unfortunatly, the documentation of this fact and the > > > docuementation of devfs.rules sucks. > > > > Hmm, it's quite explicitly mentioned i

Re: devfs doesn't set access rights

2005-12-13 Thread [LoN]Kamikaze
Here is a small patch for /etc/rc.d/devfs which makes it behave the way I suggested in my last mail. --- devfs.old Tue Dec 13 20:58:52 2005 +++ devfs Tue Dec 13 21:00:57 2005 @@ -43,8 +43,8 @@ cd /dev while read action device parameter; do

Re: devfs doesn't set access rights

2005-12-13 Thread [LoN]Kamikaze
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 f

Re: devfs doesn't set access rights

2005-12-13 Thread Kevin Oberman
> Date: Tue, 13 Dec 2005 11:21:43 -0800 > From: Brooks Davis <[EMAIL PROTECTED]> > Sender: [EMAIL PROTECTED] > > On Tue, Dec 13, 2005 at 07:04:18PM +0100, Roland Smith wrote: > > On Tue, Dec 13, 2005 at 08:49:47AM -0800, Brooks Davis wrote: > > > On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kami

Re: devfs doesn't set access rights

2005-12-13 Thread Brooks Davis
On Tue, Dec 13, 2005 at 07:04:18PM +0100, Roland Smith wrote: > On Tue, Dec 13, 2005 at 08:49:47AM -0800, Brooks Davis wrote: > > On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > > > On my FreeBSD 6-stable (the last build is less then 24hours ago) my > > > devfs doesn't apply permis

Re: devfs doesn't set access rights

2005-12-13 Thread Roland Smith
On Tue, Dec 13, 2005 at 09:37:13AM -0800, Kevin Oberman wrote: > > You are being entirely too kind. The documentation for the practical use > of devfs at all sucks! Nothing I could find in the handbook, > either. It's a classic case of documentation written by programmers in > that the author can'

Re: devfs doesn't set access rights

2005-12-13 Thread Roland Smith
On Tue, Dec 13, 2005 at 08:49:47AM -0800, Brooks Davis wrote: > On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > > On my FreeBSD 6-stable (the last build is less then 24hours ago) my > > devfs doesn't apply permissions set in /etc/devfs.conf when I attach new > > devices. I have to

Re: devfs doesn't set access rights

2005-12-13 Thread Brooks Davis
On Tue, Dec 13, 2005 at 06:19:47PM +0100, [LoN]Kamikaze wrote: > It's a simple and working solution and I think it simply should be made > default for ALL attach events. To me it makes more sense than having 2 > different systems for the same thing. > > Anyway, now I'm going to set up a devfs.rule

Re: devfs doesn't set access rights

2005-12-13 Thread Kevin Oberman
> Date: Tue, 13 Dec 2005 08:49:47 -0800 > From: Brooks Davis <[EMAIL PROTECTED]> > Sender: [EMAIL PROTECTED] > > On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > > On my FreeBSD 6-stable (the last build is less then 24hours ago) my > > devfs doesn't apply permissions set in /etc/de

Re: devfs doesn't set access rights

2005-12-13 Thread Anish Mistry
On Tuesday 13 December 2005 11:54 am, Marwan Burelle wrote: > On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > > On my FreeBSD 6-stable (the last build is less then 24hours ago) > > my devfs doesn't apply permissions set in /etc/devfs.conf when I > > attach new devices. I have to ca

Re: devfs doesn't set access rights

2005-12-13 Thread [LoN]Kamikaze
It's a simple and working solution and I think it simply should be made default for ALL attach events. To me it makes more sense than having 2 different systems for the same thing. Anyway, now I'm going to set up a devfs.rules (and learn a new different syntax for doing exactly the same thing). Th

Re: devfs doesn't set access rights

2005-12-13 Thread Marwan Burelle
On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > On my FreeBSD 6-stable (the last build is less then 24hours ago) my > devfs doesn't apply permissions set in /etc/devfs.conf when I attach new > devices. I have to call: > /etc/rc.d/devfs restart > manually for the settings to be appl

Re: devfs doesn't set access rights

2005-12-13 Thread Brooks Davis
On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > On my FreeBSD 6-stable (the last build is less then 24hours ago) my > devfs doesn't apply permissions set in /etc/devfs.conf when I attach new > devices. I have to call: > /etc/rc.d/devfs restart > manually for the settings to be appl

devfs doesn't set access rights

2005-12-13 Thread [LoN]Kamikaze
On my FreeBSD 6-stable (the last build is less then 24hours ago) my devfs doesn't apply permissions set in /etc/devfs.conf when I attach new devices. I have to call: /etc/rc.d/devfs restart manually for the settings to be applied. This is rather uncomfortable in some cases (especially with my PDA).