]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94315: Check for DAC override capability (GH-94316)
authorChristian Heimes <christian@python.org>
Mon, 27 Jun 2022 18:27:19 +0000 (20:27 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 18:27:19 +0000 (20:27 +0200)
commit7e0d98ecb3f049841de9854e7a3eca3e2638e4b2
treedbc35d553d10f812f9f4dd479c76715824a6799a
parent117217245390ed3e6fe166180f052e022d296921
gh-94315: Check for DAC override capability (GH-94316)

``os.geteuid() == 0`` is not a reliable check whether the current user
has the capability to bypass permission checks. Tests now probe for DAC
override.
Lib/test/support/os_helper.py
Lib/test/test_argparse.py
Lib/test/test_import/__init__.py
Lib/test/test_py_compile.py
Lib/test/test_shutil.py
Misc/NEWS.d/next/Tests/2022-06-27-08-53-40.gh-issue-94315.MoZT9t.rst [new file with mode: 0644]