You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests: check for DAC override capability instead of using geteuid() #94315
Several tests use os.geteuid() == 0 to check whether the current effective user can override discretionary access control and bypass permission checks for files. While user root typically has CAP_DAC_OVERRIDE, it may not actually have the capability. Non-root accounts can have CAP_DAC_OVERRIDE, too. On wasm32-emscripten it is not possible to query the actual effective uid.
I propose to add a check for DAC override instead of relying on effective uid check.
Activity
pythongh-94315: Check for DAC override capability (pythonGH-94316)
gh-94315: Check for DAC override capability (GH-94316)
hauntsaninja commentedon Oct 12, 2022
Thanks, looks like this has been completed