From: ratchov Date: Fri, 22 Mar 2024 05:54:25 +0000 (+0000) Subject: pledge: Allow the AUDIO_GETDEV ioctl in "audio" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e449cd739480571bdb9ae2b2baea21e8472cbcf3;p=openbsd pledge: Allow the AUDIO_GETDEV ioctl in "audio" ok deraadt, kn, phessler --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index deb254245d9..aab866f65fa 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.310 2023/12/12 17:43:10 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.311 2024/03/22 05:54:25 ratchov Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -1139,6 +1139,7 @@ pledge_ioctl(struct proc *p, long com, struct file *fp) #if NAUDIO > 0 if ((pledge & PLEDGE_AUDIO)) { switch (com) { + case AUDIO_GETDEV: case AUDIO_GETPOS: case AUDIO_GETPAR: case AUDIO_SETPAR: