Laurence Tratt wrote:
> On Sun, Sep 06, 2020 at 07:45:32PM +0200, Stefan Hagen wrote:
> I have one tangential comment:
> 
> > <h3>Using a webcam as user</h3>
> >
> > <p> To use the webcam as regular user, you need to change the device
> > permissions.
> 
> This made me wonder if uvideo should have an equivalent sysctl to audio (i.e.
> kern.audio.record)? Most, but I'm not sure all, webcams do display a light to
> tell you they're recording, but I can see that there is a security concern
> here.

An audio device is special in a way that it has playback and recording
capabilities in one device. The sysctl is used to allow playback (by
default) but not allow recording.

Video (as in webcam) is always a recording device, which shouldn't be
allowed to access in a default install (in contrast to audio playback).

I find the "video" group solution clean and sufficient. I'll send a
patch for it, once I've figured out how MAKEDEV works.

I say "sufficient", because I believe the best solution would be
something like sndiod (vidiod?) that acts as multiplexer and allows
multiple applications to access the video stream simultaneously.

Best Regards,
Stefan

Reply via email to