FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.8] gh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH-122134) by miss-islington · Pull Request #122429 · python/cpython · GitHub

Repository navigation

[3.8] gh-122133: Authenticate socket connection for socket.socketpair() fallback (GH-122134) - #122429

Merged
ambv merged 2 commits into
python:3.8from
miss-islington:backport-78df104-3.8
Jul 30, 2024
Merged

ambv merged 2 commits into
python:3.8from
miss-islington:backport-78df104-3.8

Conversation

miss-islington commented Jul 29, 2024 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor
  • 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>

picnixz commented Jul 30, 2024

Copy link
Copy Markdown
Member

For the one responsible for fixing the backport: test.support.socket_helper does not exist on 3.8 so unittest.skipUnless(socket_helper.IPV6_ENABLED, 'IPv6 required for this test') will not work.

ambv merged commit 2621a8a into python:3.8 Jul 30, 2024
miss-islington deleted the backport-78df104-3.8 branch January 2, 2026 17:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

5 participants


Back | FazBrowse Home | New Git URL