commit a056ffabbbdc76598830331c6550740a24fadeb8
Author: Nick Mathewson <ni...@torproject.org>
Date:   Tue May 27 19:28:12 2014 -0400

    sandbox: permit listen(2)
    
    Fix for 12115; bugfix on 0.2.5.1-alpha
---
 changes/bug12115     |    3 +++
 src/common/sandbox.c |    1 +
 2 files changed, 4 insertions(+)

diff --git a/changes/bug12115 b/changes/bug12115
new file mode 100644
index 0000000..7b84649
--- /dev/null
+++ b/changes/bug12115
@@ -0,0 +1,3 @@
+  o Minor bugfixes (linux seccomp sandbox):
+    - Avoid crashing when re-opening listener ports with the seccomp
+      sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 7586c0c..ba1956b 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -186,6 +186,7 @@ static int filter_nopar_gen[] = {
 
     // socket syscalls
     SCMP_SYS(bind),
+    SCMP_SYS(listen),
     SCMP_SYS(connect),
     SCMP_SYS(getsockname),
     SCMP_SYS(recvmsg),

_______________________________________________
tor-commits mailing list
tor-commits@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to