aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-05 14:25:58 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-05 14:25:58 -0400
commitb9a43c8f43c84c99528d7f37f09abbd42482ae57 (patch)
treeec8025b888055d0e0a492cee7859d201435953fd /src/common/sandbox.c
parent6abce601f22789aa4bd5fdf227f9e4ba07406b1c (diff)
downloadtor-b9a43c8f43c84c99528d7f37f09abbd42482ae57.tar.gz
tor-b9a43c8f43c84c99528d7f37f09abbd42482ae57.zip
For me, asan/ubsan require more syscalls.
Permit sched_yield() and sigaltstack() in the sandbox. Closes ticket 20063
Diffstat (limited to 'src/common/sandbox.c')
-rw-r--r--src/common/sandbox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 37c1a9428f..24ba8a2997 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -184,11 +184,17 @@ static int filter_nopar_gen[] = {
SCMP_SYS(read),
SCMP_SYS(rt_sigreturn),
SCMP_SYS(sched_getaffinity),
+#ifdef __NR_sched_yield
+ SCMP_SYS(sched_yield),
+#endif
SCMP_SYS(sendmsg),
SCMP_SYS(set_robust_list),
#ifdef __NR_setrlimit
SCMP_SYS(setrlimit),
#endif
+#ifdef __NR_sigaltstack
+ SCMP_SYS(sigaltstack),
+#endif
#ifdef __NR_sigreturn
SCMP_SYS(sigreturn),
#endif