diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-19 11:41:46 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-08-19 11:41:46 +0300 |
commit | a9910d89f170933a7730798c98ebbb1d743a1c46 (patch) | |
tree | 49bd606e410a7ca8b70ba1f711ad7e00afc17180 /src/common/sandbox.c | |
parent | c09b11b6d8595ef9d39f39d2060497e67cf3e756 (diff) | |
download | tor-a9910d89f170933a7730798c98ebbb1d743a1c46.tar.gz tor-a9910d89f170933a7730798c98ebbb1d743a1c46.zip |
finalised fix on libevent open string issue
Diffstat (limited to 'src/common/sandbox.c')
-rw-r--r-- | src/common/sandbox.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index c5e12311c2..210aa7c860 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -261,15 +261,6 @@ sb_open(scmp_filter_ctx ctx, sandbox_cfg_t *filter) } } - // todo remove when libevent fix - rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 1, - SCMP_CMP(1, SCMP_CMP_EQ, O_RDONLY|O_LARGEFILE|O_CLOEXEC)); - if (rc != 0) { - log_err(LD_BUG,"(Sandbox) failed to add open syscall, received libseccomp " - "error %d", rc); - return rc; - } - // problem: required by getaddrinfo rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 1, SCMP_CMP(1, SCMP_CMP_EQ, O_RDONLY|O_CLOEXEC)); |