diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-20 08:30:21 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-20 08:30:21 -0400 |
commit | 9f93bcd16d70b540c518acee56a440be12072ef7 (patch) | |
tree | 6fb0bc3c57f362457674da0cb422c911508333e7 | |
parent | 070eda5a21f580ee00ed64527ade4343b10e0fb6 (diff) | |
download | tor-9f93bcd16d70b540c518acee56a440be12072ef7.tar.gz tor-9f93bcd16d70b540c518acee56a440be12072ef7.zip |
Remove sb_poll check: all poll() calls are ok.
-rw-r--r-- | src/common/sandbox.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index c1b7bfe5e9..87fe08e881 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -1063,25 +1063,6 @@ sb_mremap(scmp_filter_ctx ctx, sandbox_cfg_t *filter) return 0; } -/** - * Function responsible for setting up the poll syscall for - * the seccomp filter sandbox. - */ -static int -sb_poll(scmp_filter_ctx ctx, sandbox_cfg_t *filter) -{ - int rc = 0; - (void) filter; - - rc = seccomp_rule_add_2(ctx, SCMP_ACT_ALLOW, SCMP_SYS(poll), - SCMP_CMP(1, SCMP_CMP_EQ, 1), - SCMP_CMP(2, SCMP_CMP_EQ, 10)); - if (rc) - return rc; - - return 0; -} - #ifdef __NR_stat64 /** * Function responsible for setting up the stat64 syscall for @@ -1156,7 +1137,6 @@ static sandbox_filter_func_t filter_func[] = { sb_flock, sb_futex, sb_mremap, - sb_poll, #ifdef __NR_stat64 sb_stat64, #endif |