On Fri, 23 Aug 2019 at 15:59:19 -0000, Stuart Henderson wrote:
> On 2019-08-23, Jan Stary <[email protected]> wrote:
> > This is current/amd64 on a Dell Latitude E5570 (dmesg below).
> > It has this integrated camera which I am trying to use with video(1):
> >
> > uvideo0 at uhub0 port 11 configuration 1 interface 0
> > "CN0J8NNP7248765RBBM6A00 Integrated_Webcam_HD" rev 2.00/54.13 addr 3
> > video0 at uvideo0
> >
> > Running just plain 'video' says
> > video: /dev/video: Permission denied
> >
> > Does that mean video(1) has to be run inside doas(1)?
> > Or is there, say, a group to add myself too, as with
> > e.g. operator to run shutdown? Doesn't seem so:
> >
> > ls -l /dev/video*
> > lrwxr-xr-x 1 root wheel 6 Jun 14 2017 /dev/video -> video0
> > crw------- 1 root wheel 44, 0 Aug 19 16:47 /dev/video0
> > crw------- 1 root wheel 44, 1 Aug 19 16:47 /dev/video1
>
> You can just chown it, or you can use fbtab(5).
xenocara doesn't work with fbtab:
[...]
if (d->windowPath != NULL) {
/* XXX not working because of pledge() */
Debug("login_fbtab %s %d\n", d->windowPath, geteuid());
login_fbtab(d->windowPath, pwd->pw_uid, pwd->pw_gid);
}
So unfortunately you still need to add such things to
/etc/X11/xenodm/{Give,Take}Console.