GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python3/python3-test-subprocess-userns.patch at master · pld-linux/python3

Expand file tree

/

python3-test-subprocess-userns.patch

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
28 lines (27 loc) · 1.52 KB
/

python3-test-subprocess-userns.patch

Copy path

File metadata and controls

28 lines (27 loc) · 1.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Make test_subprocess.test_user / test_group tolerate user namespace
builder sandboxes where setregid / setreuid return EINVAL for unmapped
uid/gid values instead of EPERM/EACCES.
--- Python-3.13.13/Lib/test/test_subprocess.py.orig 2025-11-10 00:00:00.000000000 +0100
+++ Python-3.13.13/Lib/test/test_subprocess.py 2025-11-10 00:00:00.000000000 +0100
@@ -2202,6 +2202,10 @@ class POSIXProcessTestCase(BaseTestCase,
self.assertEqual(e.filename, sys.executable)
else:
self.assertIsNone(e.filename)
+ except OSError as e:
+ if e.errno != errno.EINVAL:
+ raise
+ self.skipTest("setreuid() EINVAL; unmapped uid in user namespace")
else:
if isinstance(user, str):
user_uid = pwd.getpwnam(user).pw_uid
@@ -2248,6 +2252,10 @@ class POSIXProcessTestCase(BaseTestCase,
close_fds=close_fds)
except PermissionError as e: # (EACCES, EPERM)
self.assertIsNone(e.filename)
+ except OSError as e:
+ if e.errno != errno.EINVAL:
+ raise
+ self.skipTest("setregid() EINVAL; unmapped gid in user namespace")
else:
if isinstance(group, str):
group_gid = grp.getgrnam(group).gr_gid
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.