Uh oh!
There was an error while loading. Please reload this page.
gh-132124: improve safety nets for creating AF_UNIX socket files - #134085
Conversation
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.
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.
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 <10796600+picnixz@users.noreply.github.com>
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 <10796600+picnixz@users.noreply.github.com>
GH-134448 is a backport of this pull request to the 3.13 branch. |
…es (GH-134085) (#134447) 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 <10796600+picnixz@users.noreply.github.com>
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 <10796600+picnixz@users.noreply.github.com> * 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 <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
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 |
There was a problem hiding this comment.
This _SUN_PATH_MAX = 108 value for Linux includes a null terminator, resulting in #140734.
pythonGH-134085) * ensure that we can create AF_UNIX socket files * emit a warning if system-wide temporary directory is used
cc @Poupine@thesamesam@mmokrejs
multiprocessing.util.get_temp_dir()can be used to create socket files with limited path length #132124