summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-10-07 06:04:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-10-07 06:04:01 +0000
commit2c3d9d0ac6060327b23bdefbe7e57234a5c347ca (patch)
tree9e76b07e63f86e2563f35c2f8b68aac365f767e4 /sys/kern
parent5c480877f6f4e68be89c4b1e8ab815cfd4b33600 (diff)
permit SYS___set_tcb, upcoming code will require this
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_pledge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 98ec3aa9f7b..5b7b13a64ba 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.220 2017/09/08 05:36:53 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.221 2017/10/07 06:04:00 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -106,6 +106,7 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = {
[SYS_exit] = PLEDGE_ALWAYS,
[SYS_kbind] = PLEDGE_ALWAYS,
[SYS___get_tcb] = PLEDGE_ALWAYS,
+ [SYS___set_tcb] = PLEDGE_ALWAYS,
[SYS_pledge] = PLEDGE_ALWAYS,
[SYS_sendsyslog] = PLEDGE_ALWAYS, /* stack protector reporting */
[SYS_thrkill] = PLEDGE_ALWAYS, /* raise, abort, stack pro */