Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-132124: improve safety nets for creating AF_UNIX socket files#134085
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-132124: improve safety nets for creating AF_UNIX socket files #134085
Uh oh!
There was an error while loading. Please reload this page.
Conversation
picnixz commented May 16, 2025 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When you're done making the requested changes, leave the comment: |
3233fdc to 84f7020Comparepicnixz commented May 17, 2025
I have made the requested changes; please review again. |
Thanks for making the requested changes! @gpshead: please review the changes made to this pull request. |
thesamesam commented May 17, 2025
Thank you! It works (and the change seems to have the semantics I'd expect). |
| __all__ = [ | ||
| 'sub_debug', 'debug', 'info', 'sub_warning', 'get_logger', | ||
| 'sub_debug', 'debug', 'info', 'sub_warning', 'warn', 'get_logger', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note to self: I'm going to leave 'warn' out of __all__ and rename the function to _warn as a modification to our 3.13 backport as it'd technically be an API change in a bugfix release otherwise.
1a07a01 into python:mainUh oh!
There was an error while loading. Please reload this page.
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]>
GH-134447 is a backport of this pull request to the 3.14 branch. |
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]>
GH-134448 is a backport of this pull request to the 3.13 branch. |
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
…es (GH-134085) (#134448) * gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used (cherry picked from commit 1a07a01) Co-authored-by: Bénédikt Tran <[email protected]> * rename warn -> _warn for the 3.13.x backport * Update Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst --------- Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Gregory P. Smith <[email protected]>
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
| # [2]: https://man7.org/linux/man-pages/man7/unix.7.html. | ||
| if sys.platform == 'linux': | ||
| _SUN_PATH_MAX = 108 |
zmedicoOct 29, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This _SUN_PATH_MAX = 108 value for Linux includes a null terminator, resulting in #140734.
cc @Poupine@thesamesam@mmokrejs
multiprocessing.util.get_temp_dir()can be used to create socket files with limited path length #132124