Explorar o código

fix: flock filter update

Cristian Toader %!s(int64=12) %!d(string=hai) anos
pai
achega
8aa5517ff6
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/common/sandbox.c

+ 5 - 0
src/common/sandbox.c

@@ -531,6 +531,11 @@ sb_flock(scmp_filter_ctx ctx, sandbox_cfg_t *filter)
   if (rc)
     return rc;
 
+  rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(flock), 1,
+      SCMP_CMP(1, SCMP_CMP_EQ, LOCK_UN));
+  if (rc)
+    return rc;
+
   return 0;
 }