KEMBAR78
[3.12] gh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH-122134) by miss-islington · Pull Request #122425 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 29, 2024

  • Authenticate socket connection for socket.socketpair() fallback when the platform does not have a native socketpair C API. We authenticate in-process using getsocketname and getpeername (thanks to Nathaniel J Smith for that suggestion).

(cherry picked from commit 78df104)

Co-authored-by: Seth Michael Larson seth@python.org
Co-authored-by: Gregory P. Smith greg@krypto.org

…r()` fallback (pythonGH-122134)

* Authenticate socket connection for `socket.socketpair()` fallback when the platform does not have a native `socketpair` C API.  We authenticate in-process using `getsocketname` and `getpeername` (thanks to Nathaniel J Smith for that suggestion).

(cherry picked from commit 78df104)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
@gpshead gpshead enabled auto-merge (squash) July 29, 2024 21:46
@gpshead gpshead merged commit 220e31a into python:3.12 Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants