summaryrefslogtreecommitdiff
path: root/tests/13-basic-attrs.py
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2022-10-31 13:21:33 -0600
committerTom Hromatka <tom.hromatka@oracle.com>2022-10-31 13:21:47 -0600
commit96989965042a515a3cbcb50e9b98243b9b7d4c37 (patch)
tree98fe9472c53c05575d4841b1bc6df61d3e35b368 /tests/13-basic-attrs.py
parente797591bdd6834272e2db292400f608ed9bd7fab (diff)
downloadlibseccomp-96989965042a515a3cbcb50e9b98243b9b7d4c37.tar.gz
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 <paul@paul-moore.com> Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'tests/13-basic-attrs.py')
-rwxr-xr-xtests/13-basic-attrs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/13-basic-attrs.py b/tests/13-basic-attrs.py
index 48c25a0..abf4b68 100755
--- a/tests/13-basic-attrs.py
+++ b/tests/13-basic-attrs.py
@@ -61,6 +61,9 @@ def test():
f.set_attr(Attr.API_SYSRAWRC, 1)
if f.get_attr(Attr.API_SYSRAWRC) != 1:
raise RuntimeError("Failed getting Attr.API_SYSRAWRC")
+ f.set_attr(Attr.CTL_WAITKILL, 1)
+ if f.get_attr(Attr.CTL_WAITKILL) != 1:
+ raise RuntimeError("Failed getting Attr.CTL_WAITKILL")
test()