]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sandbox: permit gettid, sched_getaffinity
authorNick Mathewson <nickm@torproject.org>
Tue, 20 May 2014 19:49:01 +0000 (15:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 20 May 2014 19:49:01 +0000 (15:49 -0400)
These are needed under some circumstances if we are running with
expensive-hardening and sandbox at the same time.

fixes 11477, bugfix on 0.2.5.4-alpha (where we introduced
expensive-hardening)

changes/bug11477 [new file with mode: 0644]
src/common/sandbox.c

diff --git a/changes/bug11477 b/changes/bug11477
new file mode 100644 (file)
index 0000000..21dd345
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (linux syscall sandbox):
+    - Prevent the sandbox from crashing on startup when run with the
+      --enable-expensive-hardening configuration option. Fixes bug
+      11477; bugfix on 0.2.5.4-alpha.
index 5c7d8c87bcfe1620ea74af42d698e8e6f7fe6528..bb2b3ed7427694d4d541c7d75bd24e8c325efdbf 100644 (file)
@@ -115,6 +115,7 @@ static int filter_nopar_gen[] = {
 #endif
     SCMP_SYS(getrlimit),
     SCMP_SYS(gettimeofday),
+    SCMP_SYS(gettid),
     SCMP_SYS(getuid),
 #ifdef __NR_getuid32
     SCMP_SYS(getuid32),
@@ -129,6 +130,7 @@ static int filter_nopar_gen[] = {
     SCMP_SYS(munmap),
     SCMP_SYS(read),
     SCMP_SYS(rt_sigreturn),
+    SCMP_SYS(sched_getaffinity),
     SCMP_SYS(set_robust_list),
 #ifdef __NR_sigreturn
     SCMP_SYS(sigreturn),