static int seccomp_add_syscall_filter_set(
scmp_filter_ctx seccomp,
- uint32_t default_action,
const SyscallFilterSet *set,
uint32_t action) {
if (!other)
return -EINVAL;
- r = seccomp_add_syscall_filter_set(seccomp, default_action, other, action);
+ r = seccomp_add_syscall_filter_set(seccomp, other, action);
if (r < 0)
return r;
} else {
if (r < 0)
return r;
- r = seccomp_add_syscall_filter_set(seccomp, default_action, set, action);
+ r = seccomp_add_syscall_filter_set(seccomp, set, action);
if (r < 0) {
log_debug_errno(r, "Failed to add filter set, ignoring: %m");
continue;