On Wed, 11 Jan 2006, Oliver Neukum wrote: > That means that write access to usbfs means CAP_HARDWARE. > If you can disable ports and set addresses, what can prevent you > from switching devices without the storage driver knowing?
Basically nothing prevents it, other than the permissions in usbfs. Note that switching off port power when a device is attached should generate a connect-change message that the hub driver will see. Also, the USB spec says that a device's response to Set-Address is undefined when the device is in the Configured state. To change an address reliably you would have to first set the device to config 0. Of course, that can also be done without usbcore's knowledge, via usbfs. Alan Stern ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel