[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] fix: flock filter update



commit 8aa5517ff639fe7101de34c24701057d56a44346
Author: Cristian Toader <cristian.matei.toader@xxxxxxxxx>
Date:   Wed Aug 21 13:38:00 2013 +0300

    fix: flock filter update
---
 src/common/sandbox.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 87c8946..7ff0fb0 100644
--- a/src/common/sandbox.c
+++ b/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;
 }
 



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