diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2023-05-19 01:12:24 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2023-05-19 01:12:24 +0000 |
commit | 7e4ff845d817668078117877422a947c85db712b (patch) | |
tree | a9fb4fc42faf47b0e9151912140b897d75ec82ab /sys/kern/kern_pledge.c | |
parent | 195e450bddd093cbc2cc085e8a37a440c09e3045 (diff) |
Since waitid(2) shares code with wait4(2) and doesn't expose any
non-trivial new information or code-paths over wait4(), include
it in pledge("stdio")
discussed with deraadt@
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 5429af4f854..15a0ae32ab8 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.304 2023/02/19 18:46:46 anton Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.305 2023/05/19 01:12:23 guenther Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -231,6 +231,7 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = { [SYS_socketpair] = PLEDGE_STDIO, [SYS_wait4] = PLEDGE_STDIO, + [SYS_waitid] = PLEDGE_STDIO, /* * Can kill self with "stdio". Killing another pid |