summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-04-29 08:02:57 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-04-29 08:02:57 +0000
commit235ffb59e57ae7aed558eb5e5dd333667e17223e (patch)
treef6539f92a552ec951e7bb5eb681611e05eb94438
parentea8d0446f8114db7ca0889a9cb6529e1a5869154 (diff)
Mark futex(2) as PLEDGE_STDIO like all other thread-related syscalls.
From semarie@, ok deraadt@
-rw-r--r--sys/kern/kern_pledge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 4bea704b4cf..66a4975552b 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.206 2017/04/28 13:50:55 mpi Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.207 2017/04/29 08:02:56 mpi Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -258,8 +258,8 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = {
*/
[SYS___tfork] = PLEDGE_STDIO,
[SYS_sched_yield] = PLEDGE_STDIO,
+ [SYS_futex] = PLEDGE_STDIO,
[SYS___thrsleep] = PLEDGE_STDIO,
- [SYS_futex] = PLEDGE_ALWAYS,
[SYS___thrwakeup] = PLEDGE_STDIO,
[SYS___threxit] = PLEDGE_STDIO,
[SYS___thrsigdivert] = PLEDGE_STDIO,