From 8b38325d055261f2105ca96555d111bf595cca03 Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Wed, 10 Jan 2018 15:59:23 -0500 Subject: tests: fix the live Python tests Add the sigaltstack(2) syscall to the list of allowed syscalls; tested against Python v3.6.4. Signed-off-by: Paul Moore (imported from commit 8aced6fe4087e7e16e76d06bdf1e73f0a2ae9c97) --- tests/21-live-basic_allow.py | 1 + tests/24-live-arg_allow.py | 1 + tests/32-live-tsync_allow.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/21-live-basic_allow.py b/tests/21-live-basic_allow.py index 8e16ead..3bf5317 100755 --- a/tests/21-live-basic_allow.py +++ b/tests/21-live-basic_allow.py @@ -47,6 +47,7 @@ def test(): f.add_rule(ALLOW, "rt_sigaction") f.add_rule(ALLOW, "rt_sigreturn") f.add_rule(ALLOW, "sigreturn") + f.add_rule(ALLOW, "sigaltstack") f.add_rule(ALLOW, "brk") f.add_rule(ALLOW, "exit_group") f.load() diff --git a/tests/24-live-arg_allow.py b/tests/24-live-arg_allow.py index 51e6110..3226584 100755 --- a/tests/24-live-arg_allow.py +++ b/tests/24-live-arg_allow.py @@ -43,6 +43,7 @@ def test(): f.add_rule(ALLOW, "close") f.add_rule(ALLOW, "rt_sigaction") f.add_rule(ALLOW, "rt_sigreturn") + f.add_rule(ALLOW, "sigaltstack") f.add_rule(ALLOW, "exit_group") f.add_rule(ALLOW, "brk") f.load() diff --git a/tests/32-live-tsync_allow.py b/tests/32-live-tsync_allow.py index a59b1a3..da8d4cb 100755 --- a/tests/32-live-tsync_allow.py +++ b/tests/32-live-tsync_allow.py @@ -48,6 +48,7 @@ def test(): f.add_rule(ALLOW, "rt_sigaction") f.add_rule(ALLOW, "rt_sigreturn") f.add_rule(ALLOW, "sigreturn") + f.add_rule(ALLOW, "sigaltstack") f.add_rule(ALLOW, "brk") f.add_rule(ALLOW, "exit_group") f.load() -- cgit v1.2.1