Re: USB problem: /dev/ugen* dynamically auto-reconfigures to root:operator 644, so non-root user unable to access USB devices even if wanted

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 20 Oct 2003 18:07:05 +0200
In message <20031020154536.GE38650_at_cicely12.cicely.de>, Bernd Walter writes:
>On Mon, Oct 20, 2003 at 01:44:50PM +0200, Poul-Henning Kamp wrote:
>> In message <20031020113514.GA875_at_titan.klemm.apsfilter.org>, Andreas Klemm writ
>> es:
>> >root_at_titan[ttyp2]{6} ~ ls -l /dev/ugen*
>> >crw-r--r--  1 root  operator  114,   0 Oct 20 13:14 /dev/ugen0
>> >crw-r--r--  1 root  operator  114,   2 Oct 20 13:14 /dev/ugen0.2
>> >crw-rw-rw-  1 root  operator  114,  16 Oct 20 13:14 /dev/ugen1
>> >crw-r--r--  1 root  operator  114,  17 Oct 20 13:14 /dev/ugen1.1
>> >crw-r--r--  1 root  operator  114,  18 Oct 20 13:14 /dev/ugen1.2
>> >crw-r--r--  1 root  operator  114,  19 Oct 20 13:14 /dev/ugen1.3
>> >
>> >And voila, ther permission are wrong again.
>> 
>> I have no idea what goes on here.
>
>An USB device can be switched between several alternative
>configurations.
>If such a change is requested (USB_SET_CONFIG) the devicenode for
>everything but the control channel is recreated.

But the devfs rules should still set the mode when it is recreated...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Mon Oct 20 2003 - 07:07:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:26 UTC