]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sandbox: Permit rseq syscall as well
authorpmu-ipf <peter.mueller@ipfire.org>
Sat, 30 Apr 2022 11:10:04 +0000 (11:10 +0000)
committerAlexander Færøy <ahf@torproject.org>
Mon, 9 May 2022 14:17:22 +0000 (14:17 +0000)
This was found to be necessary in conjunction with glibc 2.35 on Linux.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
src/lib/sandbox/sandbox.c

index e6e556eb598983659f3cb166aebf7a382e77ece2..7a57554ace2564102053895e7dc52b0481ed1a42 100644 (file)
@@ -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),