Re: [PATCH] USB: usbfs: deprecate and hide option for !embedded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 21, 2009 at 07:30:33PM +0200, Kay Sievers wrote:
> On Tue, Apr 21, 2009 at 18:55, Greg KH <gregkh@xxxxxxx> wrote:
> > 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.
> 
> If that format is really useful, or people are just used to reading
> it, maybe lsusb can be made to print the same format.

Yeah, that's on my long-term list, but once Randy wrote the bash script,
it moved way down in priority.

But if anyone else wants to do that, I think it would be great to have.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux