From 12dc37890254adf852439eb46ebb154fb3e37b41 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 10 Sep 2017 18:52:23 +0200 Subject: [PATCH] seccomp: drop default_action parameter from seccomp_add_syscall_filter_set() The function doesn't actually use the parameter, hence let's drop it. --- src/shared/seccomp-util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shared/seccomp-util.c b/src/shared/seccomp-util.c index 0857f5907ed..88e8af3fef3 100644 --- a/src/shared/seccomp-util.c +++ b/src/shared/seccomp-util.c @@ -684,7 +684,6 @@ const SyscallFilterSet *syscall_filter_set_find(const char *name) { static int seccomp_add_syscall_filter_set( scmp_filter_ctx seccomp, - uint32_t default_action, const SyscallFilterSet *set, uint32_t action) { @@ -704,7 +703,7 @@ static int seccomp_add_syscall_filter_set( 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 { @@ -740,7 +739,7 @@ int seccomp_load_syscall_filter_set(uint32_t default_action, const SyscallFilter 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; -- 2.47.3