[systemd-devel] WebUSB

Greg KH greg at kroah.com
Mon Jan 9 10:07:42 UTC 2017


On Mon, Jan 09, 2017 at 09:40:59AM +0000, Kenneth Rohde Christiansen wrote:
> Web USB can only grab devices which has special Web USB headers. It can not
> grab any USB device.
> 
> https://wicg.github.io/webusb/#webusb-descriptors

Ah, fun :(

So, we can add a quirk into the kernel cdc-acm driver to never bind to a
device that has the wusb platform capability descriptor, which will
prevent you from having to disconnect the driver from the device (and
the permissions issues involved in that.)

Would that help out?

And just do the same thing in modem manager, never grab a device with
this descriptor, and let the browser/webusb handle the control of the
device if it so desires.

thanks,

greg k-h


More information about the systemd-devel mailing list