Re: unveil for audioctl

2018-09-17 Thread Alexandre Ratchov
On Mon, Sep 17, 2018 at 01:27:03PM +0100, Ricardo Mestre wrote: > And of course I missed disabling unveil(2) just right the first call... > > Index: audioctl.c > === > RCS file: /cvs/src/usr.bin/audioctl/audioctl.c,v > retrieving

Re: unveil for audioctl

2018-09-17 Thread Ricardo Mestre
err(1, "unveil"); + fd = open(path, O_RDWR); if (fd < 0) err(1, "%s", path); On 13:22 Mon 17 Sep , Ricardo Mestre wrote: > Hi, > > This adds unveil(2) to audioctl(1) which only needs rw to the access control &

unveil for audioctl

2018-09-17 Thread Ricardo Mestre
Hi, This adds unveil(2) to audioctl(1) which only needs rw to the access control device, which by default is /dev/audioctl0, but can be manipulated via args. OK? Index: audioctl.c === RCS file: /cvs/src/usr.bin/audioctl/audioctl.c