On Wed, 2 Nov 2005, gary clark wrote:

> Hi Alan,
> 
> My thinking is that usb_storage has snagged the
> interface before I even get there. What options do I
> have to grabbing the interface? I'm already super user
> when I run my application.

I'm not sure exactly what you're trying to accomplish.  Do you want to 
prevent users from accessing _all_ USB mass storage devices?  Then you can 
simply take usb-storage and ub out of the kernel configuration.

Do you want to restrict users to certain USB mass storage devices, 
determined for example by VID/PID?  The easiest way to do that will be to 
change the usb-storage driver, to make it reject all the devices you 
don't like.  (And in addition, leave ub out of the kernel configuration.)

If you want to take control of the interface yourself, you can force 
usb-storage to give it up.  There are two ways of doing this, one through 
usbfs (there's also a libusb routine that does it, but I can't remember 
the name), and another through sysfs.  Note however, that there will 
always end up being a short period of time during which the device _is_ 
accessible through usb-storage, before you can kick it off.

Alan Stern



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to