udev permissions for USB
Quoted 3 lines · Kay Sievers
Quoted 3 lines
Quoted 3 lines
Certain classes of USB devices like printers, fingerprint readers, scanners, webcams, ... get ACLs assigned for locally logged-in users only.
Which is good, but I think things could be even better.
Quoted 5 lines
The commonly used groups are device-class based matches only. The udev-managed user ACLs are also class-based only, and not bus based. They are no unpredictable match like 'all pci devices'. For example, we must never grant access to a USB device which contains a usb-storage blockdevice.
Of course not. I don't think that was the intent of the request.
I do see value in special treatment for "usbfs-capable" interfaces; ie. those that have either usbfs or no driver at all bound.
Quoted 4 lines
You can just add such a udev rule to systems you administrate, if that's the behavior you expect and can be sure its not a security issue. The default udev installation does not suggest/recommend/support anything like this.
I think it could make sense for it to do so, not for all USB devices, but for those that have no driver.
I'm not sure if it can actually be done reliably though. Maybe it's enough to react on when an interface appears and/or loses it's driver.
//Peter
Quoted 4 lines · Peter Stuge
Of course not. I don't think that was the intent of the request.
I do see value in special treatment for "usbfs-capable" interfaces; ie. those that have either usbfs or no driver at all bound.
All devices are usbfs capable, and usbfs can unbind any current driver.
We just don't want to encourage the use of any groups like this. With the same argument we don't want other bus-specific groups like 'pci' or 'scsi' group for device access permissions behind that bus.
People can do these things very easily in their custom setup, be it for all usb devices, or with matches on vendor/product/class/... That's all fine, but it should not be in the default setup.
Kay