diff --git a/libseccomp-2.5.3.tar.gz b/libseccomp-2.5.3.tar.gz deleted file mode 100644 index a81531b..0000000 --- a/libseccomp-2.5.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:59065c8733364725e9721ba48c3a99bbc52af921daf48df4b1e012fbc7b10a76 -size 637572 diff --git a/libseccomp-2.5.3.tar.gz.asc b/libseccomp-2.5.3.tar.gz.asc deleted file mode 100644 index 8b7c510..0000000 --- a/libseccomp-2.5.3.tar.gz.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCAAdFiEER6aPzjfH1wJP1l4RNWzmLCtSQJkFAmGFkR4ACgkQNWzmLCtS -QJl4kRAAu5Q3TqHSCuYdPHzHfYJfYZX1kLmZJ0TATBrFsCvjpSPNEcoqQEWPXTdy -6mgdEjTXEmj6GIJiCe5NyExQUalTKbMVUiBbWSo/QW8RMQaoMRu4s6+fzT6sKJbp -v94iju+/HYoGmRiFPld8wWyji5rRTRsZAM/eduCCA5jqwMb4ImmA1xtMXZeT82yk -ajP606xY0DbRvkRDLVAJqxPNUXniNmkTSkeM6VqnuzKQLls/ZlysDM4KsUxHsX0A -9+oc53CFjaN4TS4vfgTHmtyfCsOcpfc9kB+31mkAZZbYcLFWPZ5AVSWf0/mXt2u2 -7xtNX/DCp9ds0H1F1OozxjPlj2sYbikO6JGrakO7vtCA/B3mbZ+jUunoaO/9QC9T -CayZqwR8woxNe+eKeHdJWqynehgYhbra6GkQ5LFoQ/P1Pmc4+IIEW1hclt7sw/EQ -tr4ieCEq7hfPcBrtr3GgyxD4uOd1cIcW6TcsmwfddmUI4hnjTYePN96Ra85ceUsu -JUksfAvlo7vwb6nc0Drf2iKdgaKJrtafkN3s5KAtn16HyLriD4UPDCDP/LQXCWm1 -XXZcb9eRZfAL03eRWmwjWZLD7QPaW8K5ykwDvRTzrB872SM7D/N4Nqc+jEn67vQQ -+tFh7s+hL7kquzgOTJW6HScc+KDENzwgyVJyY3RJCGrjX4//h1I= -=Qn2j ------END PGP SIGNATURE----- diff --git a/libseccomp-2.5.4.tar.gz b/libseccomp-2.5.4.tar.gz new file mode 100644 index 0000000..8683cb2 --- /dev/null +++ b/libseccomp-2.5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d82902400405cf0068574ef3dc1fe5f5926207543ba1ae6f8e7a1576351dcbdb +size 637228 diff --git a/libseccomp-2.5.4.tar.gz.asc b/libseccomp-2.5.4.tar.gz.asc new file mode 100644 index 0000000..ccde5fb --- /dev/null +++ b/libseccomp-2.5.4.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEER6aPzjfH1wJP1l4RNWzmLCtSQJkFAmJhXrEACgkQNWzmLCtS +QJlfEhAAmj2Oa4pLZj98t5UOSxqrO/yWzX8dvtSmAAIAcD/jvX+lQ9Pq1uO5SMHq +g0jsLy9tqGP4zEGg7743bmrJ8GjW70jH4153ENJIqrvkIgeP2/8diyAQ+x7AZ0z9 +O2JEGmA1xI+u9q9vdi6l03viwQUqm1EBokaKnPwQwUEN8c96EFdWIcK+Bz0qUTDW +aP5TejKH9Xnlc0PVK6o1anmOdl+J1pxwptnZxW9dF29MMuQD2pqmfGUvfOlRXXy8 +a8qqlDL+iCEwBSRRvHJ4FEsh3idSGIGhqUX6zEXMHUe5E6AihCJ0aDSutXgvmO4F +aNFiUFzx71S31xvDxJKCwsTol/ObHHI1Df90VbkhsI4DBtchF5qLXfdEDaLBpo1h +kOWP6Qm5FOSEAhYKUPnIdsz+0yBbFzs/XMEyxtIdp9NTcvCPlaYa70KZ7kHISZ3Z +yqmhU6w5aQCdWSKK1mgqZe9QJ8y/9XHGOr+XSQlc6eAy27HfMT1dakTTsOf7Nr+L +z5IvkyDqfFnwL9k6CiZ2sB8i2qEWV6jR4o7k1JFQ8qXr7sw/ghZfb2jPgSlFcerm +eCUJwTKg3cZLLz3Cxwq1b8p7jtGfbFYniug+IJ3u9KuM1kUGmUAAhNfLCWdXhf36 +n35zutoYBK5kY0zWDvAPVg9JOHrxMx9u33ypW9Tq7oMHf0O8sPA= +=G0np +-----END PGP SIGNATURE----- diff --git a/libseccomp.changes b/libseccomp.changes index ed071d3..df01158 100644 --- a/libseccomp.changes +++ b/libseccomp.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Sat Apr 30 16:42:48 UTC 2022 - Jan Engelhardt + +- Deactive python3 by default, it's just not a good idea for ring0. + +------------------------------------------------------------------- +Thu Apr 21 21:23:08 UTC 2022 - Jan Engelhardt + +- Update to release 2.5.4 + * Update the syscall table for Linux v5.17. + * Fix minor issues with binary tree testing and with empty + binary trees. + * Minor documentation improvements including retiring the + mailing list. + +------------------------------------------------------------------- +Mon Jan 17 11:08:28 UTC 2022 - Marcus Meissner + +- buildrequire python-rpm-macros + +------------------------------------------------------------------- +Thu Dec 2 12:09:38 UTC 2021 - Marcus Rueckert + +- reenable python bindings at least for the distro default python3 + package: + - adds make-python-build.patch + ------------------------------------------------------------------- Sun Nov 7 13:23:22 UTC 2021 - Jan Engelhardt diff --git a/libseccomp.spec b/libseccomp.spec index c86fb46..d69f92a 100644 --- a/libseccomp.spec +++ b/libseccomp.spec @@ -1,7 +1,7 @@ # # spec file for package libseccomp # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define lname libseccomp2 Name: libseccomp -Version: 2.5.3 +Version: 2.5.4 Release: 0 Summary: A Seccomp (mode 2) helper library License: LGPL-2.1-only @@ -28,11 +28,17 @@ Source: https://github.com/seccomp/libseccomp/releases/download/v%versio Source2: https://github.com/seccomp/libseccomp/releases/download/v%version/libseccomp-%version.tar.gz.asc Source3: %name.keyring Source99: baselibs.conf +Patch1: make-python-build.patch BuildRequires: autoconf BuildRequires: automake >= 1.11 BuildRequires: fdupes BuildRequires: libtool >= 2 BuildRequires: pkgconfig +%bcond_with python +%if 0%{?with python} +BuildRequires: python-rpm-macros +BuildRequires: python3-Cython >= 0.29 +%endif %description The libseccomp library provides an interface to the Linux Kernel's @@ -73,6 +79,17 @@ syscall filtering mechanism, seccomp. This subpackage contains debug utilities for the seccomp interface. +%package -n python3-seccomp +Summary: Python 3 bindings for seccomp +Group: Development/Tools/Debuggers +Requires: python3-Cython >= 0.29 + +%description -n python3-seccomp +The libseccomp library provides an interface to the Linux Kernel's +syscall filtering mechanism, seccomp. + +This subpackage contains the python3 bindings for seccomp. + %prep %autosetup -p1 @@ -84,23 +101,25 @@ echo 'int main () { return 0; }' >tests/52-basic-load.c %endif %build -if [ ! -f configure ]; then - perl -i -pe 's{\QAC_INIT([libseccomp], [0.0.0])\E}{AC_INIT([libseccomp], [%version])}' configure.ac -fi autoreconf -fiv %configure \ --includedir="%_includedir/%name" \ +%if %{with python} + --enable-python \ +%endif --disable-static \ --disable-silent-rules \ GPERF=/bin/true -make %{?_smp_mflags} +%make_build %install %make_install find "%buildroot/%_libdir" -type f -name "*.la" -delete +rm -fv %buildroot/%python3_sitearch/install_files.txt %fdupes %buildroot/%_prefix %check +export LD_LIBRARY_PATH="$PWD/src/.libs" make check %post -n %lname -p /sbin/ldconfig @@ -120,4 +139,10 @@ make check %_bindir/scmp_sys_resolver %_mandir/man1/scmp_sys_resolver.1* +%if %{with python} +%files -n python3-seccomp +%python3_sitearch/seccomp-%version-py*.egg-info +%python3_sitearch/seccomp.cpython*.so +%endif + %changelog diff --git a/make-python-build.patch b/make-python-build.patch new file mode 100644 index 0000000..3b89687 --- /dev/null +++ b/make-python-build.patch @@ -0,0 +1,595 @@ +Index: libseccomp-2.5.2/src/python/setup.py +=================================================================== +--- libseccomp-2.5.2.orig/src/python/setup.py ++++ libseccomp-2.5.2/src/python/setup.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Enhanced Seccomp Library Python Module Build Script +@@ -41,7 +41,7 @@ setup( + ext_modules = [ + Extension("seccomp", ["seccomp.pyx"], + # unable to handle libtool libraries directly +- extra_objects=["../.libs/libseccomp.a"], ++ extra_objects=["../.libs/libseccomp.so"], + # fix build warnings, see PEP 3123 + extra_compile_args=["-fno-strict-aliasing"]) + ] +Index: libseccomp-2.5.2/tests/01-sim-allow.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/01-sim-allow.py ++++ libseccomp-2.5.2/tests/01-sim-allow.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/02-sim-basic.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/02-sim-basic.py ++++ libseccomp-2.5.2/tests/02-sim-basic.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/03-sim-basic_chains.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/03-sim-basic_chains.py ++++ libseccomp-2.5.2/tests/03-sim-basic_chains.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/04-sim-multilevel_chains.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/04-sim-multilevel_chains.py ++++ libseccomp-2.5.2/tests/04-sim-multilevel_chains.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/05-sim-long_jumps.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/05-sim-long_jumps.py ++++ libseccomp-2.5.2/tests/05-sim-long_jumps.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/06-sim-actions.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/06-sim-actions.py ++++ libseccomp-2.5.2/tests/06-sim-actions.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/07-sim-db_bug_looping.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/07-sim-db_bug_looping.py ++++ libseccomp-2.5.2/tests/07-sim-db_bug_looping.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/08-sim-subtree_checks.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/08-sim-subtree_checks.py ++++ libseccomp-2.5.2/tests/08-sim-subtree_checks.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/09-sim-syscall_priority_pre.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/09-sim-syscall_priority_pre.py ++++ libseccomp-2.5.2/tests/09-sim-syscall_priority_pre.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/10-sim-syscall_priority_post.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/10-sim-syscall_priority_post.py ++++ libseccomp-2.5.2/tests/10-sim-syscall_priority_post.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/11-basic-basic_errors.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/11-basic-basic_errors.py ++++ libseccomp-2.5.2/tests/11-basic-basic_errors.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/12-sim-basic_masked_ops.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/12-sim-basic_masked_ops.py ++++ libseccomp-2.5.2/tests/12-sim-basic_masked_ops.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/13-basic-attrs.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/13-basic-attrs.py ++++ libseccomp-2.5.2/tests/13-basic-attrs.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/14-sim-reset.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/14-sim-reset.py ++++ libseccomp-2.5.2/tests/14-sim-reset.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/15-basic-resolver.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/15-basic-resolver.py ++++ libseccomp-2.5.2/tests/15-basic-resolver.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/16-sim-arch_basic.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/16-sim-arch_basic.py ++++ libseccomp-2.5.2/tests/16-sim-arch_basic.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/17-sim-arch_merge.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/17-sim-arch_merge.py ++++ libseccomp-2.5.2/tests/17-sim-arch_merge.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/18-sim-basic_allowlist.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/18-sim-basic_allowlist.py ++++ libseccomp-2.5.2/tests/18-sim-basic_allowlist.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/19-sim-missing_syscalls.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/19-sim-missing_syscalls.py ++++ libseccomp-2.5.2/tests/19-sim-missing_syscalls.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/20-live-basic_die.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/20-live-basic_die.py ++++ libseccomp-2.5.2/tests/20-live-basic_die.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/21-live-basic_allow.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/21-live-basic_allow.py ++++ libseccomp-2.5.2/tests/21-live-basic_allow.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/22-sim-basic_chains_array.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/22-sim-basic_chains_array.py ++++ libseccomp-2.5.2/tests/22-sim-basic_chains_array.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/23-sim-arch_all_le_basic.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/23-sim-arch_all_le_basic.py ++++ libseccomp-2.5.2/tests/23-sim-arch_all_le_basic.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/24-live-arg_allow.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/24-live-arg_allow.py ++++ libseccomp-2.5.2/tests/24-live-arg_allow.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/25-sim-multilevel_chains_adv.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/25-sim-multilevel_chains_adv.py ++++ libseccomp-2.5.2/tests/25-sim-multilevel_chains_adv.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/26-sim-arch_all_be_basic.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/26-sim-arch_all_be_basic.py ++++ libseccomp-2.5.2/tests/26-sim-arch_all_be_basic.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/27-sim-bpf_blk_state.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/27-sim-bpf_blk_state.py ++++ libseccomp-2.5.2/tests/27-sim-bpf_blk_state.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/28-sim-arch_x86.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/28-sim-arch_x86.py ++++ libseccomp-2.5.2/tests/28-sim-arch_x86.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/29-sim-pseudo_syscall.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/29-sim-pseudo_syscall.py ++++ libseccomp-2.5.2/tests/29-sim-pseudo_syscall.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/30-sim-socket_syscalls.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/30-sim-socket_syscalls.py ++++ libseccomp-2.5.2/tests/30-sim-socket_syscalls.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/31-basic-version_check.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/31-basic-version_check.py ++++ libseccomp-2.5.2/tests/31-basic-version_check.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/32-live-tsync_allow.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/32-live-tsync_allow.py ++++ libseccomp-2.5.2/tests/32-live-tsync_allow.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/33-sim-socket_syscalls_be.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/33-sim-socket_syscalls_be.py ++++ libseccomp-2.5.2/tests/33-sim-socket_syscalls_be.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/34-sim-basic_denylist.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/34-sim-basic_denylist.py ++++ libseccomp-2.5.2/tests/34-sim-basic_denylist.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/35-sim-negative_one.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/35-sim-negative_one.py ++++ libseccomp-2.5.2/tests/35-sim-negative_one.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/36-sim-ipc_syscalls.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/36-sim-ipc_syscalls.py ++++ libseccomp-2.5.2/tests/36-sim-ipc_syscalls.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/37-sim-ipc_syscalls_be.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/37-sim-ipc_syscalls_be.py ++++ libseccomp-2.5.2/tests/37-sim-ipc_syscalls_be.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/39-basic-api_level.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/39-basic-api_level.py ++++ libseccomp-2.5.2/tests/39-basic-api_level.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/40-sim-log.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/40-sim-log.py ++++ libseccomp-2.5.2/tests/40-sim-log.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/41-sim-syscall_priority_arch.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/41-sim-syscall_priority_arch.py ++++ libseccomp-2.5.2/tests/41-sim-syscall_priority_arch.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/42-sim-adv_chains.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/42-sim-adv_chains.py ++++ libseccomp-2.5.2/tests/42-sim-adv_chains.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/43-sim-a2_order.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/43-sim-a2_order.py ++++ libseccomp-2.5.2/tests/43-sim-a2_order.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/44-live-a2_order.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/44-live-a2_order.py ++++ libseccomp-2.5.2/tests/44-live-a2_order.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/45-sim-chain_code_coverage.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/45-sim-chain_code_coverage.py ++++ libseccomp-2.5.2/tests/45-sim-chain_code_coverage.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/46-sim-kill_process.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/46-sim-kill_process.py ++++ libseccomp-2.5.2/tests/46-sim-kill_process.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/47-live-kill_process.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/47-live-kill_process.py ++++ libseccomp-2.5.2/tests/47-live-kill_process.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/48-sim-32b_args.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/48-sim-32b_args.py ++++ libseccomp-2.5.2/tests/48-sim-32b_args.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/49-sim-64b_comparisons.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/49-sim-64b_comparisons.py ++++ libseccomp-2.5.2/tests/49-sim-64b_comparisons.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/50-sim-hash_collision.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/50-sim-hash_collision.py ++++ libseccomp-2.5.2/tests/50-sim-hash_collision.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/51-live-user_notification.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/51-live-user_notification.py ++++ libseccomp-2.5.2/tests/51-live-user_notification.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/52-basic-load.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/52-basic-load.py ++++ libseccomp-2.5.2/tests/52-basic-load.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/53-sim-binary_tree.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/53-sim-binary_tree.py ++++ libseccomp-2.5.2/tests/53-sim-binary_tree.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/54-live-binary_tree.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/54-live-binary_tree.py ++++ libseccomp-2.5.2/tests/54-live-binary_tree.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/56-basic-iterate_syscalls.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/56-basic-iterate_syscalls.py ++++ libseccomp-2.5.2/tests/56-basic-iterate_syscalls.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/57-basic-rawsysrc.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/57-basic-rawsysrc.py ++++ libseccomp-2.5.2/tests/57-basic-rawsysrc.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/58-live-tsync_notify.py +=================================================================== +--- libseccomp-2.5.2.orig/tests/58-live-tsync_notify.py ++++ libseccomp-2.5.2/tests/58-live-tsync_notify.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + + # + # Seccomp Library test program +Index: libseccomp-2.5.2/tests/regression +=================================================================== +--- libseccomp-2.5.2.orig/tests/regression ++++ libseccomp-2.5.2/tests/regression +@@ -253,9 +253,9 @@ function run_test_command() { + cmd="$cmd:$(cd $(pwd)/../src/python/build/lib.*; pwd)" + # check and adjust if we are doing a VPATH build + if [[ -e "./$2.py" ]]; then +- cmd="$cmd /usr/bin/env python $2.py $3" ++ cmd="$cmd /usr/bin/env python3 $2.py $3" + else +- cmd="$cmd /usr/bin/env python ${srcdir}/$2.py $3" ++ cmd="$cmd /usr/bin/env python3 ${srcdir}/$2.py $3" + fi + else + cmd="$2 $3"