hselasky / webcamd

Linux USB kernel drivers in userspace daemon
Other
21 stars 12 forks source link

running as non-root #15

Closed swills closed 3 years ago

swills commented 3 years ago

Just wondering, would it ever be possible to run webcamd as non-root? Perhaps if the cuse device were not owned by root? Would there be any real benefit?

hselasky commented 3 years ago

Yes, if both /dev/cuse and /dev/ugenX.Y is made available to webcamd.

The problem is that some operations requires re-opening of ugenX.Y, so you cannot just capsicum it :-(

If capsicum could support a regular expression for limiting access, syslogd, cuse, ugen, pidfile, that would be the best.

If you want to work on it, feel free to go ahead.

swills commented 3 years ago

Ok, I'll take a look. Closing this for now. If I make progress I'll re-open.