> So the call is ioctl(fd, AUDIO_SETINFO, &aui) which seems to trigger pledge.

Thanks for the report.  I could reproduce the problem.

The latest change to kern_pledge.c wrapped the AUDIO_* ioctls in
#ifdef NAUDIO > 0, but "audio.h" isn't included, so pledge "audio"
essentially became a no-op.

Index: sys/kern/kern_pledge.c
===================================================================
RCS file: /var/cvs/src/sys/kern/kern_pledge.c,v
retrieving revision 1.139
diff -u -p -r1.139 kern_pledge.c
--- sys/kern/kern_pledge.c      27 Dec 2015 01:37:46 -0000      1.139
+++ sys/kern/kern_pledge.c      27 Dec 2015 16:17:21 -0000
@@ -64,6 +64,7 @@
 #define PLEDGENAMES
 #include <sys/pledge.h>
 
+#include "audio.h"
 #include "pty.h"
 #include "pty.h"
 

Reply via email to