From: deraadt Date: Sun, 11 Oct 2015 16:01:06 +0000 (+0000) Subject: sigaltstack is directly used by setjmp on some architectures. it only X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b5b5adfe6d468d4efad0623e4e2d12fd7ac25a85;p=openbsd sigaltstack is directly used by setjmp on some architectures. it only refers to the process itself. pledge should allow it. --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index e003c80f1fa..037ec1b4e09 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.13 2015/10/11 15:40:48 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.14 2015/10/11 16:01:06 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -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,