Re: usb device implemented with functionfs - must app run as root?

2017-12-06 Thread Greg KH
On Wed, Dec 06, 2017 at 07:26:13PM +0100, Krzysztof Opasiak wrote: > > > On 12/06/2017 07:26 AM, Greg KH wrote: > > On Tue, Dec 05, 2017 at 10:09:35PM +, andy_purc...@keysight.com wrote: > > > I have implemented a USB device using functionfs. > > > A colleague now says our app must run as a

RE: usb device implemented with functionfs - must app run as root?

2017-12-06 Thread andy_purcell
oking at parent device '/kernel/config/usb_gadget': KERNELS=="usb_gadget" SUBSYSTEMS=="" DRIVERS=="" looking at parent device '/kernel/config': KERNELS=="config" SUBSYSTEMS=="" DRIVERS=="" looking at parent de

Re: usb device implemented with functionfs - must app run as root?

2017-12-06 Thread Krzysztof Opasiak
On 12/06/2017 07:26 AM, Greg KH wrote: On Tue, Dec 05, 2017 at 10:09:35PM +, andy_purc...@keysight.com wrote: 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

Re: usb device implemented with functionfs - must app run as root?

2017-12-05 Thread Greg KH
On Tue, Dec 05, 2017 at 10:09:35PM +, andy_purc...@keysight.com wrote: > 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