Set USB device ownership based on vedorid/productid

2021-02-15 Thread Edgar Fuß
Does NetBSD provide any framework that allows USB device ownership/permissions to be autmatically set on USB VendorId/DeviceId? E.g., if a USB device with VendorId/ProductId 06da/0002 appears and becomes ugen0, do chown nut:nut /dev/ugen0.*; chmod 0660 /dev/ugen0.*

Re: Set USB device ownership based on vedorid/productid

2021-02-15 Thread Mouse
> Does NetBSD provide any framework that allows USB device > ownership/permissions to be autmatically set on USB > VendorId/DeviceId? As far as I know it doesn't; a quick look at 8.0's manpages didn't show me anything. (9.1 is not easy for me to check right now; today I'm on the wrong job for tha

Re: Set USB device ownership based on vedorid/productid

2021-02-15 Thread Thor Lancelot Simon
On Mon, Feb 15, 2021 at 12:15:28PM -0500, Mouse wrote: > > Does NetBSD provide any framework that allows USB device > > ownership/permissions to be autmatically set on USB > > VendorId/DeviceId? > > As far as I know it doesn't; a quick look at 8.0's manpages didn't show > me anything. (9.1 is not

Re: Set USB device ownership based on vedorid/productid

2021-02-15 Thread Joerg Sonnenberger
On Mon, Feb 15, 2021 at 12:15:28PM -0500, Mouse wrote: > Back in the day, I added a pseudo-device that gave userland the ability > to watch the autoconf device tree. devpubd does that in-tree. Joerg

Re: Set USB device ownership based on vedorid/productid

2021-02-15 Thread Mouse
>> Back in the day, I added a pseudo-device that gave userland the >> ability to watch the autoconf device tree. > devpubd does that in-tree. Well, what I added was more akin to drvctl(4) than to devpubd(8), but yes. Thank you; when I went looking at manpages I missed those. I knew I could count