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
sb_flock,
sb_futex,
sb_mremap,
- sb_poll,
#ifdef __NR_stat64
sb_stat64,
#endif