From 9b07575c31840e2d2c6f810b3c7f854d2a952d77 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Wed, 1 Sep 2021 10:55:23 -0600 Subject: 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 Signed-off-by: Tom Hromatka (cherry picked from commit 4f34c6eb17c2ffcb0fce5911ddbc161d97517476) --- tests/24-live-arg_allow.py | 1 + 1 file changed, 1 insertion(+) 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") -- cgit v1.2.1