diff options
author | Paul Moore <paul@paul-moore.com> | 2017-02-03 08:52:01 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-02-03 08:52:01 -0500 |
commit | ce5aea6a4ae7523b57ec13e2e6150aa5d83c1b4e (patch) | |
tree | b83759c9f007fc76620c0498f07333d31c7123c2 /tests/20-live-basic_die.py | |
parent | f6a4e747ca16d6a7acfafe934aa4d0671b4fa70e (diff) | |
download | libseccomp-ce5aea6a4ae7523b57ec13e2e6150aa5d83c1b4e.tar.gz |
python: add support for Python 3.x
This patch adds the necessary tweaks to support building against
Python v2.x and v3.x. In the process we also fix some problems with
the Python live tests; it is unclear when they broke, but they are
working now.
Tested on Python v2.7.13 and v3.6.0.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/20-live-basic_die.py')
-rwxr-xr-x | tests/20-live-basic_die.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/20-live-basic_die.py b/tests/20-live-basic_die.py index 389a50f..26013f6 100755 --- a/tests/20-live-basic_die.py +++ b/tests/20-live-basic_die.py @@ -33,6 +33,7 @@ def test(): if action == TRAP: util.install_trap() f = SyscallFilter(action) + f.add_rule(ALLOW, "getpid") f.add_rule(ALLOW, "rt_sigreturn") f.add_rule(ALLOW, "sigreturn") f.add_rule(ALLOW, "exit_group") |