From 1d31464c050b54e195d45d0c008995e52af1a46a Mon Sep 17 00:00:00 2001 From: Kenta Tada Date: Mon, 18 May 2020 13:12:07 +0900 Subject: BUG: fix api update to check if SCMP_ACT_KILL_PROCESS is supported Signed-off-by: Kenta Tada Acked-by: Tom Hromatka --- src/api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index 843b6a3..7c95e48 100644 --- a/src/api.c +++ b/src/api.c @@ -107,7 +107,8 @@ static unsigned int _seccomp_api_update(void) /* level 3 */ if (level == 2 && sys_chk_seccomp_flag(SECCOMP_FILTER_FLAG_LOG) == 1 && - sys_chk_seccomp_action(SCMP_ACT_LOG) == 1) + sys_chk_seccomp_action(SCMP_ACT_LOG) == 1 && + sys_chk_seccomp_action(SCMP_ACT_KILL_PROCESS) == 1) level = 3; if (level == 3 && -- cgit v1.2.1