On Tue, Apr 21, 2009 at 12:52:12PM -0400, Alan Stern wrote: > On Tue, 21 Apr 2009, Scott James Remnant wrote: > > > Modern systems do not use usbfs; the entries within it are files, > > not device nodes, and do not support ACLs which are the default way to > > provide access to USB devices to untrusted users. > > > > It is replaced by device-nodes maintained by udev in /dev/bus/usb, > > libusb uses this device nodes. > > > > Mark the option as deprecated, and hide entirely for non-embedded builds > > (which may not be using udev but require raw USB device access). > > I don't like this at all. usbfs provides /proc/bus/usb/devices, and > some of the information in that file is not easily available anywhere > else. What is lacking in sysfs? Here's a script from Randy Dunlap that pretty much provides the equilivant. thanks, greg k-h
Attachment:
usb-devices.sh
Description: Bourne shell script