Skip to content

Commit 9b07575

Browse files
committed
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 <[email protected]> Signed-off-by: Tom Hromatka <[email protected]> (cherry picked from commit 4f34c6e)
1 parent 01a7e98 commit 9b07575

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/24-live-arg_allow.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def test():
4141
# NOTE: additional syscalls required for python
4242
f.add_rule(ALLOW, "write", Arg(0, EQ, fd))
4343
f.add_rule(ALLOW, "close")
44+
f.add_rule(ALLOW, "munmap")
4445
f.add_rule(ALLOW, "rt_sigaction")
4546
f.add_rule(ALLOW, "rt_sigreturn")
4647
f.add_rule(ALLOW, "sigaltstack")

0 commit comments

Comments
 (0)