artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad228b7
)
__get_tcb() is needed for errno access in threaded programs on some archs.
author
guenther
<guenther@openbsd.org>
Sun, 11 Oct 2015 01:56:56 +0000
(
01:56
+0000)
committer
guenther
<guenther@openbsd.org>
Sun, 11 Oct 2015 01:56:56 +0000
(
01:56
+0000)
Make it always available.
ok deraadt@
sys/kern/kern_pledge.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_pledge.c
b/sys/kern/kern_pledge.c
index
5ee44b4
..
6612232
100644
(file)
--- a/
sys/kern/kern_pledge.c
+++ b/
sys/kern/kern_pledge.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_pledge.c,v 1.1
0 2015/10/10 19:15:53 deraadt Exp $
*/
+/* $OpenBSD: kern_pledge.c,v 1.1
1 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,