diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2024-03-22 05:54:26 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2024-03-22 05:54:26 +0000 |
commit | 88121cf746a641b47850ea3aa769864b46d96b87 (patch) | |
tree | 98c0265173b35ae15a25b706da37c9dad36575b0 /sys/kern/kern_pledge.c | |
parent | ca99ddc00ae293d3d1a35b7fbcdb8200440d788b (diff) |
pledge: Allow the AUDIO_GETDEV ioctl in "audio"
ok deraadt, kn, phessler
Diffstat (limited to 'sys/kern/kern_pledge.c')
-rw-r--r-- | sys/kern/kern_pledge.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <nicm@openbsd.org> @@ -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: |