summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sandbox-seccomp-filter.c3
-rw-r--r--sandbox-systrace.c3
2 files changed, 5 insertions, 1 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
diff --git a/sandbox-systrace.c b/sandbox-systrace.c
index f8a552898..03b0d40cc 100644
--- a/sandbox-systrace.c
+++ b/sandbox-systrace.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sandbox-systrace.c,v 1.15 2015/05/18 15:06:05 deraadt Exp $ */ 1/* $OpenBSD: sandbox-systrace.c,v 1.16 2015/06/29 22:35:12 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2011 Damien Miller <djm@mindrot.org> 3 * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
4 * 4 *
@@ -61,6 +61,7 @@ static const struct sandbox_policy preauth_policy[] = {
61 { SYS___sysctl, SYSTR_POLICY_PERMIT }, 61 { SYS___sysctl, SYSTR_POLICY_PERMIT },
62#endif 62#endif
63 { SYS_getpid, SYSTR_POLICY_PERMIT }, 63 { SYS_getpid, SYSTR_POLICY_PERMIT },
64 { SYS_getpgid, SYSTR_POLICY_PERMIT },
64 { SYS_gettimeofday, SYSTR_POLICY_PERMIT }, 65 { SYS_gettimeofday, SYSTR_POLICY_PERMIT },
65 { SYS_madvise, SYSTR_POLICY_PERMIT }, 66 { SYS_madvise, SYSTR_POLICY_PERMIT },
66 { SYS_mmap, SYSTR_POLICY_PERMIT }, 67 { SYS_mmap, SYSTR_POLICY_PERMIT },