diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-06-29 22:35:12 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-06-30 08:36:34 +1000 |
commit | 512caddf590857af6aa12218461b5c0441028cf5 (patch) | |
tree | fd1beaf73f1494a669187f985b7070c704c18384 /sandbox-seccomp-filter.c | |
parent | 78c2a4f883ea9aba866358e2acd9793a7f42ca93 (diff) |
upstream commit
add getpid to sandbox, reachable by grace_alarm_handler
reported by Jakub Jelen; bz#2419
Upstream-ID: d0da1117c16d4c223954995d35b0f47c8f684cd8
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r-- | sandbox-seccomp-filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index ef9d6fa26..2462bcc88 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c | |||
@@ -141,6 +141,9 @@ static const struct sock_filter preauth_insns[] = { | |||
141 | #ifdef __NR_exit_group | 141 | #ifdef __NR_exit_group |
142 | SC_ALLOW(exit_group), | 142 | SC_ALLOW(exit_group), |
143 | #endif | 143 | #endif |
144 | #ifdef __NR_getpgid | ||
145 | SC_ALLOW(getpgid), | ||
146 | #endif | ||
144 | #ifdef __NR_getpid | 147 | #ifdef __NR_getpid |
145 | SC_ALLOW(getpid), | 148 | SC_ALLOW(getpid), |
146 | #endif | 149 | #endif |