artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f50373a
)
sigaltstack is directly used by setjmp on some architectures. it only
author
deraadt
<deraadt@openbsd.org>
Sun, 11 Oct 2015 16:01:06 +0000
(16:01 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 11 Oct 2015 16:01:06 +0000
(16:01 +0000)
refers to the process itself. pledge should allow it.
sys/kern/kern_pledge.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_pledge.c
b/sys/kern/kern_pledge.c
index
e003c80
..
037ec1b
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
3 2015/10/11 15:40:48
deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.1
4 2015/10/11 16:01:06
deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-89,6
+89,7
@@
const u_int pledge_syscalls[SYS_MAXSYSCALL] = {
[SYS_sendsyslog] = PLEDGE_SELF,
[SYS_nanosleep] = PLEDGE_SELF,
+ [SYS_sigaltstack] = PLEDGE_SELF,
[SYS_sigprocmask] = PLEDGE_SELF,
[SYS_sigsuspend] = PLEDGE_SELF,
[SYS_sigaction] = PLEDGE_SELF,