CVE-2022-37966 python:/tests/krb5: call sys.path.insert(0, "bin/python") before any...
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Nov 2022 13:14:32 +0000 (14:14 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2022 14:06:14 +0000 (14:06 +0000)
commit987cba90573f955fe9c781830daec85ad4d5bf92
tree73f5f91f5c77e1dca879f542db2a82f86959d38a
parentd1999c152acdf939b4cd7eb446dd9921d3edae29
CVE-2022-37966 python:/tests/krb5: call sys.path.insert(0, "bin/python") before any other imports

This allows the tests to be executed without an explicit
PYTHONPATH="bin/python".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Dec 13 14:06:14 UTC 2022 on sn-devel-184
22 files changed:
python/samba/tests/krb5/alias_tests.py
python/samba/tests/krb5/as_canonicalization_tests.py
python/samba/tests/krb5/claims_tests.py
python/samba/tests/krb5/etype_tests.py
python/samba/tests/krb5/fast_tests.py
python/samba/tests/krb5/group_tests.py
python/samba/tests/krb5/kdc_base_test.py
python/samba/tests/krb5/kpasswd_tests.py
python/samba/tests/krb5/lockout_tests.py
python/samba/tests/krb5/nt_hash_tests.py
python/samba/tests/krb5/pac_align_tests.py
python/samba/tests/krb5/protected_users_tests.py
python/samba/tests/krb5/rodc_tests.py
python/samba/tests/krb5/s4u_tests.py
python/samba/tests/krb5/salt_tests.py
python/samba/tests/krb5/spn_tests.py
python/samba/tests/krb5/test_ccache.py
python/samba/tests/krb5/test_idmap_nss.py
python/samba/tests/krb5/test_ldap.py
python/samba/tests/krb5/test_min_domain_uid.py
python/samba/tests/krb5/test_rpc.py
python/samba/tests/krb5/test_smb.py