On 09/12/2007 05:50:05 AM, Aurelien Jarno wrote:
reassign 440763 libgphoto2-2 retitle 440763 libgphoto2-2: set wrong permissions on the udev nodes
Thank you for your help, and that is definitely a problem. But I still think that there is a lsusb related problem. Should I submit another bug to the lsusb maintainer?
Aurelien Jarno a écrit : > On Mon, Sep 03, 2007 at 11:50:14PM -0500, Karl O. Pinc wrote:
>> lsusb should display permission errors when enumerating >> those devices to which the user has no access. >>
> There is now way to do that. If the device is unreadable, you can't get > any information from it, and thus libusb doesn't return any information > about it.
If there is no way to do that then this problem needs to be passed up to the kernel maintainers so the ioctl returns some error codes or something. If lsusb can detect that a device exists it should be able to tell that it can't get any information about the device and issue an error, just like cat does when it tries to read a file without permission or ls does when it tries to read a directory or follow a symlink and there's no permission. Something somewhere is silently ignoring permission violations and the result is that lsusb must always be run as root or the results cannot be trusted because there is no way to know when all devices are shown and when not. (In an SELinux environment the problem may well be worse and lsusb can _never_ be trusted.)
I found that it comes from the rules file installed by libgphoto2. I am therefore reassigning the bug to this package.
Karl <[EMAIL PROTECTED]> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein