Sfoglia il codice sorgente

fixed socket syscall bug

Cristian Toader 10 anni fa
parent
commit
8e003b1c69
1 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 2
      src/common/sandbox.c

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