summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2021-09-01 10:49:13 -0600
committerTom Hromatka <tom.hromatka@oracle.com>2021-09-01 10:49:13 -0600
commit4f34c6eb17c2ffcb0fce5911ddbc161d97517476 (patch)
treef7722ff8378a8c066a5ab2fb769e16ba84fe0561 /tests
parentaf395889d14a8838299a48868b7a9a34b81e143a (diff)
downloadlibseccomp-4f34c6eb17c2ffcb0fce5911ddbc161d97517476.tar.gz
tests: Allow munmap() syscall in Python test #24
The python live test, 24-live-arg_allow.py, started failing on Python version 3.9.6+ on Fedora 34 and Ubuntu 20.10. The Python quit() call is now invoking the munmap() syscall. To fix this, allow the munmap() syscall in the test's seccomp filter. Acked-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/24-live-arg_allow.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/24-live-arg_allow.py b/tests/24-live-arg_allow.py
index 3226584..42d2389 100755
--- a/tests/24-live-arg_allow.py
+++ b/tests/24-live-arg_allow.py
@@ -41,6 +41,7 @@ def test():
# NOTE: additional syscalls required for python
f.add_rule(ALLOW, "write", Arg(0, EQ, fd))
f.add_rule(ALLOW, "close")
+ f.add_rule(ALLOW, "munmap")
f.add_rule(ALLOW, "rt_sigaction")
f.add_rule(ALLOW, "rt_sigreturn")
f.add_rule(ALLOW, "sigaltstack")