"MM" == Marcus Meissner
writes:
MM> On Tue, Jan 23, 2007 at 12:28:08PM +0100, Joachim Schrod wrote:
Hello,
Five days ago I posted about my problem that resmgr doesn't establish access control for /dev/usbdev*; no reaction up to now.
Is really nobody here that can answer the question how access to USB is supposed to work for a desktop user? E.g., how can he run lsusb and see what devices are attached?
MM> I did not see this mail, sorry. No problem; it's OK that you read it now. :-) :-) MM> lsusb works even without permissions for the desktop user. MM> We hand out ACLs to the /dev/bus/usb/XXX/YYY master devices, MM> which are used by libusb. (I should note that this is on SUSE 10.0.) puma:dev $ ll /dev/bus/usb/*/* lrwxrwxrwx 1 root root 18 Jan 16 22:27 /dev/bus/usb/1/1 -> ../../../usbdev1.1 lrwxrwxrwx 1 root root 18 Jan 16 22:27 /dev/bus/usb/2/1 -> ../../../usbdev2.1 lrwxrwxrwx 1 root root 18 Jan 16 22:27 /dev/bus/usb/3/1 -> ../../../usbdev3.1 lrwxrwxrwx 1 root root 18 Jan 16 22:27 /dev/bus/usb/4/1 -> ../../../usbdev4.1 lrwxrwxrwx 1 root root 18 Jan 16 22:27 /dev/bus/usb/5/1 -> ../../../usbdev5.1 That's why I asked for the /dev/usbdev* devices. Anyhow, there are no user ACLs: puma:dev $ getfacl /dev/bus/usb/1/1 getfacl: Removing leading '/' from absolute path names # file: dev/bus/usb/1/1 # owner: root # group: root user::rw- group::rw- other::--- I'm using standard login on the console, btw., and /etc/pam.d/login requires pam_resmgr.so for the session. resmgr works itself, as can be seen by the access rights of my sound devices or my CD writer, where the ACL for my userid schrod was added: puma:dev $ getfacl /dev/sr1 getfacl: Removing leading '/' from absolute path names # file: dev/sr1 # owner: root # group: disk user::rw- user:schrod:rw- group::r-- mask::rw- other::--- "resmgr list usb" outputs "no devices available" even though the lsusb output shows that there are some: puma:~ # lsusb Bus 4 Device 1: ID 0000:0000 Bus 5 Device 2: ID 04a9:3119 Canon, Inc. Bus 5 Device 1: ID 0000:0000 Bus 1 Device 1: ID 0000:0000 Bus 3 Device 1: ID 0000:0000 Bus 2 Device 1: ID 0000:0000 That lsusb works only as root, though. As normal user, lsusb outputs nothing, also no error message for the EACCESS it gets when it tries to open /dev/bus/usb/*/*. Sadly, hal-resmgr --list doesn't work, the option is not known (maybe that option was added in a more current SUSE version). lshal lists the USB devices, the attached camera, and also the Hub Interface and the Host Controller. But it doesn't list any resmgr.device entries for the latter; also no serial.device or linux.device_file or some similar entry that has /dev/bus/usb/*/* as a value. Maybe that points to the problem cause? Sorry for the longer post, but I wanted to supply the information that's available to me, to reduce email ping-pong. ;-) It would be great if you could see anything that went wrong. Hmm, a last question: Maybe it's sensible to add the usb device files manually to the resmgr configuration? Something like add /dev/bus/usb/1/1 desktop for all USB device files? Best, and thanks again for looking at my problem, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org