summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hromatka <tom.hromatka@oracle.com>2021-09-01 10:55:23 -0600
committerTom Hromatka <tom.hromatka@oracle.com>2021-09-01 10:55:23 -0600
commit9b07575c31840e2d2c6f810b3c7f854d2a952d77 (patch)
treedd84a63d42707a18759300fe5c73e45526e01eea
parent01a7e989c67210584322677e347c78e37061d730 (diff)
downloadlibseccomp-9b07575c31840e2d2c6f810b3c7f854d2a952d77.tar.gz
tests: Allow munmap() syscall in Python test #24v2.5.2
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> (cherry picked from commit 4f34c6eb17c2ffcb0fce5911ddbc161d97517476)
-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")