summaryrefslogtreecommitdiffstats
path: root/usr.bin/ctfconv/ctfconv.c
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2018-08-08 19:35:47 +0000
committermestre <mestre@openbsd.org>2018-08-08 19:35:47 +0000
commitb2fbf4f7d706f04ccaf492031a9b7fcbc99479ff (patch)
treeeaf8641f49f92671f06690afed6679ac22e6c1bd /usr.bin/ctfconv/ctfconv.c
parentSome unsigned long to unsigned int cleanup from recent ber (type) changes. (diff)
downloadwireguard-openbsd-b2fbf4f7d706f04ccaf492031a9b7fcbc99479ff.tar.xz
wireguard-openbsd-b2fbf4f7d706f04ccaf492031a9b7fcbc99479ff.zip
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@
Diffstat (limited to 'usr.bin/ctfconv/ctfconv.c')
0 files changed, 0 insertions, 0 deletions