Changing permissions of /dev/usb[n] to 664?

Craig Rodrigues rodrigc at crodrigues.org
Sun Nov 7 12:28:48 PST 2004


On Sun, Nov 07, 2004 at 12:58:14PM -0700, M. Warner Losh wrote:
> This looks good, but we should audit all the ioctls to make sure the
> ones that modify anything have the proper checks to make sure the fd
> was opened for write.

I started doing that.  These are the ioctl's:

USB_DISCOVER  ->  this is a no-op,
USB_REQUEST
USB_DEVICEINFO
USB_DEVICE_STATS

I did not see any of these ioctl's do any permission checks on the fd,
so my patch probably not ready yet.

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc at crodrigues.org


More information about the freebsd-usb mailing list