summaryrefslogtreecommitdiff
path: root/src/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api.c b/src/api.c
index 126cbdc..843b6a3 100644
--- a/src/api.c
+++ b/src/api.c
@@ -115,7 +115,8 @@ static unsigned int _seccomp_api_update(void)
level = 4;
if (level == 4 &&
- sys_chk_seccomp_flag(SECCOMP_FILTER_FLAG_NEW_LISTENER) == 1)
+ sys_chk_seccomp_flag(SECCOMP_FILTER_FLAG_NEW_LISTENER) == 1 &&
+ sys_chk_seccomp_action(SCMP_ACT_NOTIFY) == 1)
level = 5;
/* update the stored api level and return */