aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-03-14 14:10:47 -0400
committerNick Mathewson <nickm@torproject.org>2016-03-14 14:10:47 -0400
commit4b02af452d12b35e58d3a8e5e7ef042970e26774 (patch)
tree8e378d07d31321b60d39a6f2cd82ddb257b499d7 /src/common/sandbox.c
parent36ad65a7d1709deeb4bc1ae3e994a30c3e7bf789 (diff)
parent725e0c76e3df9d3ea4b861b3ff5279b23def4ef9 (diff)
downloadtor-4b02af452d12b35e58d3a8e5e7ef042970e26774.tar.gz
tor-4b02af452d12b35e58d3a8e5e7ef042970e26774.zip
Merge branch 'bug15221_027'
Diffstat (limited to 'src/common/sandbox.c')
-rw-r--r--src/common/sandbox.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 4e765b763c..69d2b4dd26 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -177,11 +177,20 @@ static int filter_nopar_gen[] = {
SCMP_SYS(mmap),
#endif
SCMP_SYS(munmap),
+#ifdef __NR_prlimit
+ SCMP_SYS(prlimit),
+#endif
+#ifdef __NR_prlimit64
+ SCMP_SYS(prlimit64),
+#endif
SCMP_SYS(read),
SCMP_SYS(rt_sigreturn),
SCMP_SYS(sched_getaffinity),
SCMP_SYS(sendmsg),
SCMP_SYS(set_robust_list),
+#ifdef __NR_setrlimit
+ SCMP_SYS(setrlimit),
+#endif
#ifdef __NR_sigreturn
SCMP_SYS(sigreturn),
#endif