On Fri, 3 Jul 2020 11:15:01 +0200 Hans Petter Selasky <[email protected]> wrote:
> Hi, > > On 2020-07-03 11:06, Tomasz CEDRO wrote: > > +1 for user enabled actions like usb reset and kernel driver detach:-) > > maybe based on a sysctl like usermount, i.e. usb_allow_user_device_reset > > and usb_allow_user_kernel_driver_detach..? > > > > One would allow user to reset a usb device. This is sometimes required to > > restore device or change its configration. > > > > Second would allow user for example to unload ucom driver that is attached > > to a device which does not seem possible right now and causes problem with > > i.e. pyOCD / some debug probes. > > Currently we use PRIV_DRIVER in the USB stack. Not sure how a user gets > PRIV_DRIVER rights. > With a few exceptions it looks like root permissions are required per default. The code is in /usr/src/sys/kern/kern_priv.c. > Tomasz: Feel free to suggest a patch for this after testing. > -- Gary Jennejohn _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "[email protected]"
