aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpmu-ipf <peter.mueller@ipfire.org>2022-04-30 11:10:04 +0000
committerAlexander Færøy <ahf@torproject.org>2022-05-09 14:17:22 +0000
commitd422a66f8759b2edd8d85df219e8a183058268e8 (patch)
tree542cafd744cb7a26f464e28dd652b43b920e19c8
parentdc90226cc3c7c74164f8feb1f50d2fbcf0941a9d (diff)
downloadtor-d422a66f8759b2edd8d85df219e8a183058268e8.tar.gz
tor-d422a66f8759b2edd8d85df219e8a183058268e8.zip
sandbox: Permit rseq syscall as well
This was found to be necessary in conjunction with glibc 2.35 on Linux. Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
-rw-r--r--src/lib/sandbox/sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/sandbox/sandbox.c b/src/lib/sandbox/sandbox.c
index e6e556eb59..7a57554ace 100644
--- a/src/lib/sandbox/sandbox.c
+++ b/src/lib/sandbox/sandbox.c
@@ -227,6 +227,9 @@ static int filter_nopar_gen[] = {
#endif
SCMP_SYS(read),
SCMP_SYS(rt_sigreturn),
+#ifdef __NR_rseq
+ SCMP_SYS(rseq),
+#endif
SCMP_SYS(sched_getaffinity),
#ifdef __NR_sched_yield
SCMP_SYS(sched_yield),