[systemd-devel] WebUSB

Aleksander Morgado aleksander at aleksander.es
Mon Jan 9 10:29:24 UTC 2017


On Mon, Jan 9, 2017 at 11:07 AM, Greg KH <greg at kroah.com> wrote:
> 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.

Not sure anything would be required in ModemManager if the kernel
already skips the binding to cdc-acm; i.e. ModemManager won't do
anything unless the TTY is exposed.

-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list