[tor-commits] [tor/master] fixed socket syscall bug

nickm at torproject.org nickm at torproject.org
Fri Sep 13 16:31:56 UTC 2013


commit 8e003b1c69152ba6e5c3a09db11472eef5db14da
Author: Cristian Toader <cristian.matei.toader at gmail.com>
Date:   Tue Sep 10 00:42:36 2013 +0300

    fixed socket syscall bug
---
 src/common/sandbox.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 6db682d..a852cb6 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -1187,8 +1187,6 @@ add_noparam_filter(scmp_filter_ctx ctx)
 
   // add general filters
   for (i = 0; i < ARRAY_LENGTH(filter_nopar_gen); i++) {
-    if (filter_nopar_gen[i] < 0)
-      continue;
     rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, filter_nopar_gen[i], 0);
     if (rc != 0) {
       log_err(LD_BUG,"(Sandbox) failed to add syscall index %d (NR=%d), "





More information about the tor-commits mailing list