I have implemented a USB device using functionfs.
A colleague now says our app must run as a normal user, not as root.

I tried it and it does not work. 
The problem is this - the endpoint files created by the OS are owned by root. 
These ep files are created after I write the descriptors and strings to the 
/dev/usbffs/ep0 file. 

$ ls -l /dev/usbffs/
total 0
-rw-rw-rw- 1 xyzuser xyzgrp 0 Dec  5 21:36 ep0
-rw------- 1 root    root   0 Dec  5 21:39 ep1
-rw------- 1 root    root   0 Dec  5 21:39 ep2
-rw------- 1 root    root   0 Dec  5 21:39 ep3

A normal user-space app cannot open, write, read, these ep files.

Is there a remedy for this?


Andy Purcell

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to