diff options
-rw-r--r-- | include/seccomp.h.in | 3 | ||||
-rw-r--r-- | src/api.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in index 8115b50..0266e12 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -413,6 +413,9 @@ const struct scmp_version *seccomp_version(void); * support for the SCMP_ACT_KILL_PROCESS action * 4 : support for the SCMP_FLTATR_CTL_SSB filter attrbute * 5 : support for the SCMP_ACT_NOTIFY action + * support for using seccomp_notify_receive() + * support for using seccomp_notify_respond() + * support for using seccomp_notify_id_valid() * */ unsigned int seccomp_api_get(void); @@ -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 */ |