]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94315: Check for DAC override capability (GH-94316)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 27 Jun 2022 18:51:45 +0000 (11:51 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 18:51:45 +0000 (11:51 -0700)
commit5751530f51c1735b763aad886c023cab2ef49cdd
treeff02cb8ce09687ed57ee6c983de2a6b4418ad207
parent56f5f904968b3796dad942e87e971e7b87c571f3
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.
(cherry picked from commit 7e0d98ecb3f049841de9854e7a3eca3e2638e4b2)

Co-authored-by: Christian Heimes <christian@python.org>
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]