瀏覽代碼

sandbox: permit listen(2)

Fix for 12115; bugfix on 0.2.5.1-alpha
Nick Mathewson 10 年之前
父節點
當前提交
a056ffabbb
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      changes/bug12115
  2. 1 0
      src/common/sandbox.c

+ 3 - 0
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.

+ 1 - 0
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),