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>
Wed, 14 Dec 2022 11:34:00 +0000 (11:34 +0000)
commitd5a8e41313d6645898bca3771131da92860b715b
tree377c76ef5f0f07e80cef893c1945f33d9be03299
parent160e566d59011cfc9e5002f306314f1e9a37371b
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

(similar to commit 987cba90573f955fe9c781830daec85ad4d5bf92)
[jsutton@samba.org Fixed conflicts; removed changes to non-existent
 tests]

Autobuild-User(v4-16-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-16-test): Wed Dec 14 11:34:00 UTC 2022 on sn-devel-184
18 files changed:
python/samba/tests/krb5/alias_tests.py
python/samba/tests/krb5/as_canonicalization_tests.py
python/samba/tests/krb5/etype_tests.py
python/samba/tests/krb5/fast_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/pac_align_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