]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix another seccomp2 issue
authorNick Mathewson <nickm@torproject.org>
Mon, 15 Jun 2015 14:13:11 +0000 (10:13 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 15 Jun 2015 14:13:11 +0000 (10:13 -0400)
Allow pipe() and pipe2() syscalls; we need these when eventfd2()
support is missing. Fixes bug 16363; bugfix on 0.2.6.3-alpha.  Patch
from "teor".

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

diff --git a/changes/bug16363 b/changes/bug16363
new file mode 100644 (file)
index 0000000..1a6f8c6
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (Linux seccomp2 sandbox):
+    - Allow pipe() and pipe2() syscalls; we need these when eventfd2()
+      support is missing. Fixes bug 16363; bugfix on 0.2.6.3-alpha.
+      Patch from "teor".
index cdb4521c82ef65f97b8dce83dd6e0336899632bd..161eab7aad89ebaad182c13b4ff8f7184fc52829 100644 (file)
@@ -129,7 +129,15 @@ static int filter_nopar_gen[] = {
     SCMP_SYS(clone),
     SCMP_SYS(epoll_create),
     SCMP_SYS(epoll_wait),
+#ifdef HAVE_EVENTFD
     SCMP_SYS(eventfd2),
+#endif
+#ifdef HAVE_PIPE2
+    SCMP_SYS(pipe2),
+#endif
+#ifdef HAVE_PIPE
+    SCMP_SYS(pipe),
+#endif
     SCMP_SYS(fcntl),
     SCMP_SYS(fstat),
 #ifdef __NR_fstat64