From 96989965042a515a3cbcb50e9b98243b9b7d4c37 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Mon, 31 Oct 2022 13:21:33 -0600 Subject: api: add the SCMP_FLTATR_CTL_WAITKILL filter attribute The SCMP_FLTATR_CTL_WAITKILL attribute requests that the SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV flag be passed to the seccomp(2) system call when possible, which is currently only when the SECCOMP_FILTER_FLAG_NEW_LISTENER flag is also set. Signed-off-by: Paul Moore Signed-off-by: Tom Hromatka --- include/seccomp.h.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/seccomp.h.in b/include/seccomp.h.in index 6f4929b..dfbb267 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -78,6 +78,7 @@ enum scmp_filter_attr { * number */ SCMP_FLTATR_API_SYSRAWRC = 9, /**< return the system return codes */ + SCMP_FLTATR_CTL_WAITKILL = 10, /**< request wait killable semantics */ _SCMP_FLTATR_MAX, }; @@ -424,6 +425,7 @@ const struct scmp_version *seccomp_version(void); * 4 : support for the SCMP_FLTATR_CTL_SSB filter attribute * 5 : support for the SCMP_ACT_NOTIFY action and notify APIs * 6 : support the simultaneous use of SCMP_FLTATR_CTL_TSYNC and notify APIs + * 7 : support for the SCMP_FLTATR_CTL_WAITKILL filter attribute * */ unsigned int seccomp_api_get(void); -- cgit v1.2.1