From: guenther Date: Sun, 11 Oct 2015 01:56:56 +0000 (+0000) Subject: __get_tcb() is needed for errno access in threaded programs on some archs. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=edca6e16b5c4845e34bdc92d574d45db52dd3072;p=openbsd __get_tcb() is needed for errno access in threaded programs on some archs. Make it always available. ok deraadt@ --- 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 @@ -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,