Skip to content

Commit

Permalink
tests: Allow munmap() syscall in Python test #24
Browse files Browse the repository at this point in the history
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 4f34c6e)
  • Loading branch information
drakenclimber committed Sep 1, 2021
1 parent 01a7e98 commit 9b07575
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/24-live-arg_allow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9b07575

Please sign in to comment.