2015-08-10 22:56 GMT+02:00 Martin Pieuchot <m...@openbsd.org>: > On 30/07/15(Thu) 12:18, Ludovic Coues wrote: >> Right now, an USB_REQUEST ioctl will fail with an EBADF error if done >> on a device opened as read-only. With this patch, the ioctl will fail >> only if the USB_REQUEST is a write request. > > Do you need this to be able to use your usbdevs-like tool as a normal > use with the "w" bit on a /dev/usb node? >
In the case a user have the read right on the node without the write right, this patch would allow the normal use of my usbdevs-like tools for this user. In a system with default permission, this won't change anything as root and wheel have read + write permission on /dev/usb nodes and everybody else have nothing. -- Cordialement, Coues Ludovic +336 148 743 42