Re: [systemd-devel] WebUSB

2017-01-25 Thread Greg KH
On Wed, Jan 25, 2017 at 02:38:06PM +0100, Lars Knudsen wrote: > 1. someone plugs in hardware with an unknown VID/PID but CDC capabilities > 2. modemmanager does it's magic probing and finds "this is not a modem" > 3. the VID/PID(& more if needed) + findings is sent to a cloud db ... Do you want a

Re: [systemd-devel] WebUSB

2017-01-25 Thread Lars Knudsen
On Fri, Jan 20, 2017 at 1:38 PM, Greg KH wrote: > On Fri, Jan 20, 2017 at 01:18:12PM +0100, Lars Knudsen wrote: > > > The full device should be fine if it has a WebUSB interface (even > in a > > > composite scenario) > > > > Really? You want to allow

Re: [systemd-devel] WebUSB

2017-01-20 Thread Greg KH
On Fri, Jan 20, 2017 at 01:18:12PM +0100, Lars Knudsen wrote: > > The full device should be fine if it has a WebUSB interface (even in a > > composite scenario) > > Really?  You want to allow someone "raw" access to a composite device > just because of one specific interface? > >

Re: [systemd-devel] WebUSB

2017-01-20 Thread Greg KH
On Fri, Jan 20, 2017 at 12:55:20PM +0100, Lars Knudsen wrote: > On Fri, Jan 20, 2017 at 12:05 PM, Greg KH wrote: > >  - so if we can make a rule that consistently detects USB devices with a > WebUSB > > interface defined, we should get this in as a standard

Re: [systemd-devel] WebUSB

2017-01-20 Thread Lars Knudsen
On Fri, Jan 20, 2017 at 12:05 PM, Greg KH wrote: > On Fri, Jan 20, 2017 at 11:43:24AM +0100, Lars Knudsen wrote: > > > > > > On Mon, Jan 16, 2017 at 3:23 PM, Simon McVittie < > simon.mcvit...@collabora.co.uk > > > wrote: > > > > On Mon, 09 Jan 2017 at 10:20:33

Re: [systemd-devel] WebUSB

2017-01-20 Thread Greg KH
On Fri, Jan 20, 2017 at 11:43:24AM +0100, Lars Knudsen wrote: > > > On Mon, Jan 16, 2017 at 3:23 PM, Simon McVittie > > wrote: > > On Mon, 09 Jan 2017 at 10:20:33 +0100, Lars Knudsen wrote: > > 2. make sure that webusb devices will be somehow

Re: [systemd-devel] WebUSB

2017-01-20 Thread Lars Knudsen
On Mon, Jan 16, 2017 at 3:23 PM, Simon McVittie < simon.mcvit...@collabora.co.uk> wrote: > On Mon, 09 Jan 2017 at 10:20:33 +0100, Lars Knudsen wrote: > > 2. make sure that webusb devices will be somehow accessible to be used > by a > > browser running with user permissions (current temp solution

Re: [systemd-devel] WebUSB

2017-01-16 Thread Simon McVittie
On Mon, 09 Jan 2017 at 10:20:33 +0100, Lars Knudsen wrote: > 2. make sure that webusb devices will be somehow accessible to be used by a > browser running with user permissions (current temp solution listed here: > adding user to plugdev, adding 0664 permissions to device: https:// >

Re: [systemd-devel] WebUSB

2017-01-11 Thread Oliver Neukum
Am Mittwoch, den 11.01.2017, 16:01 +0100 schrieb Lars Knudsen: > If it can be invoked via DBus - what is the harm to only do the scan > for the greylisted (in this case webusb) modems when the user > actually wants to search for a modem (like a printer) - and leave the > poor devices alone

Re: [systemd-devel] WebUSB

2017-01-11 Thread Lars Knudsen
If it can be invoked via DBus - what is the harm to only do the scan for the greylisted (in this case webusb) modems when the user actually wants to search for a modem (like a printer) - and leave the poor devices alone otherwise? In headless systems, it will not be the same problem as they will

Re: [systemd-devel] WebUSB

2017-01-11 Thread Dan Williams
On Wed, 2017-01-11 at 14:21 +0100, Christer Weinigel wrote: > On 2017-01-10 19:55, Lars Knudsen wrote: > > On Tue, Jan 10, 2017 at 7:08 PM, Dan Williams > > wrote: > > And we're quite happy to keep blacklisting specific VID/PID > > combos we > >

Re: [systemd-devel] WebUSB

2017-01-11 Thread Oliver Neukum
On Tue, 2017-01-10 at 19:55 +0100, Lars Knudsen wrote > And we're quite happy to keep blacklisting specific VID/PID > combos we > know are not modems. Another possible solution is to greylist > devices > that happen to have webusb descriptors, such that

Re: [systemd-devel] WebUSB

2017-01-10 Thread Lars Knudsen
On Tue, Jan 10, 2017 at 7:08 PM, Dan Williams wrote: > On Tue, 2017-01-10 at 18:33 +0100, Greg KH wrote: > > On Tue, Jan 10, 2017 at 06:23:13PM +0100, Lars Knudsen wrote: > > > > > > > > > On Jan 10, 2017 18:19, "Greg KH" wrote: > > > > > > On Tue, Jan 10,

Re: [systemd-devel] WebUSB

2017-01-10 Thread Dan Williams
On Tue, 2017-01-10 at 18:33 +0100, Greg KH wrote: > On Tue, Jan 10, 2017 at 06:23:13PM +0100, Lars Knudsen wrote: > > > > > > On Jan 10, 2017 18:19, "Greg KH" wrote: > > > > On Tue, Jan 10, 2017 at 06:04:46PM +0100, Lars Knudsen wrote: > > > I figured that made most

Re: [systemd-devel] WebUSB

2017-01-10 Thread Lars Knudsen
On Jan 10, 2017 18:19, "Greg KH" wrote: On Tue, Jan 10, 2017 at 06:04:46PM +0100, Lars Knudsen wrote: > I figured that made most sense :) > > Still, it would be good if we could have a rule to not grab the CDC interface > part if the device includes WebUSB functionality. What

Re: [systemd-devel] WebUSB

2017-01-10 Thread Greg KH
On Tue, Jan 10, 2017 at 06:23:13PM +0100, Lars Knudsen wrote: > > > On Jan 10, 2017 18:19, "Greg KH" wrote: > > On Tue, Jan 10, 2017 at 06:04:46PM +0100, Lars Knudsen wrote: > > I figured that made most sense :) > > > > Still, it would be good if we could have a

Re: [systemd-devel] WebUSB

2017-01-10 Thread Lars Knudsen
I figured that made most sense :) Still, it would be good if we could have a rule to not grab the CDC interface part if the device includes WebUSB functionality. The likelihood of a modem+WebUSB combo is so small that it must fall in the category where potential rare exotic devices combining it

Re: [systemd-devel] WebUSB

2017-01-10 Thread Dan Williams
On Tue, 2017-01-10 at 01:01 +0100, Lars Knudsen wrote: > On Tue, Jan 10, 2017 at 12:47 AM, Lars Knudsen > wrote: > > > A small update:  When the modemmanager finishes probing (~16 secs > > after > > connection) data seems to stop flowing in from the WebUSB bulk > > endpoint > >

Re: [systemd-devel] WebUSB

2017-01-10 Thread Greg KH
On Tue, Jan 10, 2017 at 08:39:28AM +0100, Lars Knudsen wrote: > > > On Jan 10, 2017 07:51, "Greg KH" wrote: > > On Mon, Jan 09, 2017 at 01:32:40PM -0800, Reilly Grant wrote: > > On 2017-01-09 9:55 am, Greg KH wrote: > > > On Mon, Jan 09, 2017 at 06:13:04PM +0100,

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Jan 10, 2017 07:51, "Greg KH" wrote: On Mon, Jan 09, 2017 at 01:32:40PM -0800, Reilly Grant wrote: > On 2017-01-09 9:55 am, Greg KH wrote: > > On Mon, Jan 09, 2017 at 06:13:04PM +0100, Bjørn Mork wrote: > > > Greg KH writes: > > > > On Mon, Jan 09, 2017 at

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 01:32:40PM -0800, Reilly Grant wrote: > On 2017-01-09 9:55 am, Greg KH wrote: > > On Mon, Jan 09, 2017 at 06:13:04PM +0100, Bjørn Mork wrote: > > > Greg KH writes: > > > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen > > > > wrote:

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Tue, Jan 10, 2017 at 12:47 AM, Lars Knudsen wrote: > A small update: When the modemmanager finishes probing (~16 secs after > connection) data seems to stop flowing in from the WebUSB bulk endpoint > also. It is, however, possible to reconnect and get data again - so I

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
A small update: When the modemmanager finishes probing (~16 secs after connection) data seems to stop flowing in from the WebUSB bulk endpoint also. It is, however, possible to reconnect and get data again - so I need to see if there should be anything in the mbed firmware causing that behavior

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
I finally managed to make a configuration that *seems* to work and I realize that I may have had something else blocking the WebUSB interface (2) while modemmanager was communicating with the CDC_ACM interface (1). I made a clean arbitrary VID/PID and get what seems to be a functioning WebUSB

Re: [systemd-devel] WebUSB

2017-01-09 Thread Dan Williams
On Mon, 2017-01-09 at 20:05 +0100, Lars Knudsen wrote: > For all practical reasons and looking ahead, I truly believe that > there > will be no reason to have a WebUSB header in any of the few coming > modem > devices (what are the stats on new USB CDC modems for these years in > general? - still

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Mon, Jan 9, 2017 at 7:43 PM, Bjørn Mork wrote: > Lars Knudsen writes: > > > configured with [0]CDC INT, [1]CDC BULK and [2]WebUSB CDC/BULK) would: > > > > 1) not be considered a modem (it would not make sense to do a modem > > including webusb headers - in

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
For all practical reasons and looking ahead, I truly believe that there will be no reason to have a WebUSB header in any of the few coming modem devices (what are the stats on new USB CDC modems for these years in general? - still enough to justify a "blanket claim as modem"?) as having a

Re: [systemd-devel] WebUSB

2017-01-09 Thread Dan Williams
On Mon, 2017-01-09 at 19:22 +0100, Lars Knudsen wrote: > On Jan 9, 2017 18:56, "Bjørn Mork" wrote: > > > Lars Knudsen writes: > > > > > It seemed like if just one interface in the description list was > > > somehow > > > compliant with modem manager, the full

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Jan 9, 2017 18:56, "Bjørn Mork" wrote: > Lars Knudsen writes: > > > It seemed like if just one interface in the description list was somehow > > compliant with modem manager, the full device seemed claimed. > > > > I may have missed something in my headers

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 06:13:04PM +0100, Bjørn Mork wrote: > Greg KH writes: > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen wrote: > >> Web USB can only grab devices which has special Web USB headers. It can not > >> grab any USB device. > >> > >>

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
It seemed like if just one interface in the description list was somehow compliant with modem manager, the full device seemed claimed. I may have missed something in my headers while experimenting. Can you give an example of a header structure that will not be assumed to be a modem by MM while

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 01:12:11PM +0200, Felipe Balbi wrote: > > I don't think we need to change anything in the kernel. What we need is > generic udev rule that fixes up permissions for the WebUSB Interface. > > IIRC, WebUSB is implemented much like CDC ACM, however bInterfaceClass > is set to

Re: [systemd-devel] WebUSB

2017-01-09 Thread Felipe Balbi
I don't think we need to change anything in the kernel. What we need is generic udev rule that fixes up permissions for the WebUSB Interface. IIRC, WebUSB is implemented much like CDC ACM, however bInterfaceClass is set to Vendor Specific. That should be enough to prevent CDC-ACM driver from

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Mon, Jan 9, 2017 at 11:39 AM, Greg KH wrote: > On Mon, Jan 09, 2017 at 11:29:24AM +0100, Aleksander Morgado wrote: > > On Mon, Jan 9, 2017 at 11:07 AM, Greg KH wrote: > > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen > wrote: > > >>

Re: [systemd-devel] WebUSB

2017-01-09 Thread Poussa, Sakari
+Balbi On 1/9/17, 11:37 AM, "Kenneth Rohde Christiansen" > wrote: Adding Sakari and Babu, who might want to add a few people from our side. Cheers Kenneth On Mon, Jan 9, 2017 at 10:20 AM Lars Knudsen

Re: [systemd-devel] WebUSB

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 11:29:24AM +0100, Aleksander Morgado wrote: > On Mon, Jan 9, 2017 at 11:07 AM, Greg KH wrote: > > On Mon, Jan 09, 2017 at 09:40:59AM +, Kenneth Rohde Christiansen wrote: > >> Web USB can only grab devices which has special Web USB headers. It can not >

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
I have som more input - but really need Reilly's comments on this: As hardware manufacturers most often want to make it possible for users to use their hardware in a WebUSB setting as well as in a "normal" app mode, we will most likely see composite devices that could have the following

Re: [systemd-devel] WebUSB

2017-01-09 Thread Mantas Mikulėnas
On Mon, Jan 9, 2017 at 11:20 AM, Lars Knudsen wrote: Hi, I am currently looking into how we can make using WebUSB devices less painful for users on Linux. The main purpose of WebUSB (as far as I can see) is to enable certain CDC (in particular - but not limited to) devices

Re: [systemd-devel] WebUSB

2017-01-09 Thread Lars Knudsen
On Jan 9, 2017 10:53, "Mantas Mikulėnas" wrote: On Mon, Jan 9, 2017 at 11:20 AM, Lars Knudsen wrote: Hi, I am currently looking into how we can make using WebUSB devices less painful for users on Linux. The main purpose of WebUSB (as far as I can see) is