From a9910d89f170933a7730798c98ebbb1d743a1c46 Mon Sep 17 00:00:00 2001 From: Cristian Toader Date: Mon, 19 Aug 2013 11:41:46 +0300 Subject: finalised fix on libevent open string issue --- src/common/sandbox.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/common/sandbox.c') 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)); -- cgit v1.2.3-54-g00ecf