From: Alexandre Ratchov Subject: Re: sndio: show the real device name in server.device control To: tech@openbsd.org Date: Sat, 9 Mar 2024 16:41:20 +0100 On Thu, Mar 07, 2024 at 11:33:54AM +0100, Alexandre Ratchov wrote: > > To test this: > > - rebuild the kernel (to update the pledge(4) promise) > - install sndio.h in /usr/include > - rebuild and reinstall libsndio > - rebuild and reinstall sndiod and sndioctl > - reboot > After testing this diff, if you upgrade your system, remember to delete /use/lib/libsndio.so.7.3 before the upgrade. The new library doesn't work (unless you've the kernel patch below), but programs (including sndiod) will try to use it and fail. Another option is to continue testing the diff after the updgrade ;-) > > Index: sys/kern/kern_pledge.c > =================================================================== > RCS file: /cvs/src/sys/kern/kern_pledge.c,v > diff -u -p -u -p -r1.310 kern_pledge.c > --- sys/kern/kern_pledge.c 12 Dec 2023 17:43:10 -0000 1.310 > +++ sys/kern/kern_pledge.c 7 Mar 2024 08:23:30 -0000 > @@ -1139,6 +1139,7 @@ pledge_ioctl(struct proc *p, long com, s > #if NAUDIO > 0 > if ((pledge & PLEDGE_AUDIO)) { > switch (com) { > + case AUDIO_GETDEV: > case AUDIO_GETPOS: > case AUDIO_GETPAR: > case AUDIO_SETPAR: