1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin/mixerctl
mestre b2fbf4f7d7 add unveil(2) to mixerctl(1)
after we know what is the mixer device to be used, either through MIXERDEVICE
env var, the argument passed or by default /dev/mixer then we can unveil it in
read/write mode, then if opening fails we reduce unveil to only read mode.

Once open(2) succeeds then we can disable fs access by calling unveil(NULL, NULL)
since all further operations occur on fds.

A cleaner solution would be to just call pledge("audio") after open(2) but
currently the ioctls used are not whitelisted in pledge(2), ratchov@ will
investigate a better way to do this

OK ratchov@
2018-08-08 19:35:47 +00:00
..
Makefile
mixerctl.1
mixerctl.c add unveil(2) to mixerctl(1) 2018-08-08 19:35:47 +00:00