The Wayback Machine - https://web.archive.org/web/20230216074637/https://github.com/python/cpython/pull/101725
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-101702: Do not write bytecode when running as root #101725

Closed
wants to merge 1 commit into from

Conversation

vishwin
Copy link

@vishwin vishwin commented Feb 9, 2023

Only applies on systems with a geteuid() in <unistd.h>. Using geteuid() over getuid() due to setuid or other similar scenarios. Backports to 3.10 and earlier would only have the HAVE_UNISTD_H guard.

Hacked this one up; there is probably a cleaner way to do this. Also needs documenting if concept is sound.

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Feb 9, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@vishwin
Copy link
Author

vishwin commented Feb 12, 2023

No longer needed/applicable

@vishwin vishwin closed this Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants