aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-08-21 13:38:00 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-08-21 13:38:00 +0300
commit8aa5517ff639fe7101de34c24701057d56a44346 (patch)
treebb60fd0eb40c7e786ae50f972d78e6d2159d437c
parent71612f00ae6df941861fbd9c67f0bbf15256b873 (diff)
downloadtor-8aa5517ff639fe7101de34c24701057d56a44346.tar
tor-8aa5517ff639fe7101de34c24701057d56a44346.tar.gz
fix: flock filter update
-rw-r--r--src/common/sandbox.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 87c8946bc..7ff0fb0af 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;
}