summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-10-11 01:56:57 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-10-11 01:56:57 +0000
commita0465c1b0468413af5f3d7f87745305aab589774 (patch)
tree0fa882af3598d0df1ef22d1b24f794e693ce2b3a /sys/kern
parent77db5816fd8cf1898f87e7b0428c79646f9bd628 (diff)
__get_tcb() is needed for errno access in threaded programs on some archs.
Make it always available. ok deraadt@
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 5ee44b4582e..661223226a6 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.10 2015/10/10 19:15:53 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.11 2015/10/11 01:56:56 guenther Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -51,6 +51,7 @@ int canonpath(const char *input, char *buf, size_t bufsize);
const u_int pledge_syscalls[SYS_MAXSYSCALL] = {
[SYS_exit] = 0xffffffff,
[SYS_kbind] = 0xffffffff,
+ [SYS___get_tcb] = 0xffffffff,
[SYS_getuid] = PLEDGE_SELF,
[SYS_geteuid] = PLEDGE_SELF,