GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python3/python3-test-subprocess-userns.patch at master · pld-linux/python3 Expand file tree/ Copy pathpython3-test-subprocess-userns.patchMore file actions 28 lines (27 loc) · 1.52 KB / Copy pathpython3-test-subprocess-userns.patchFile metadata and controls28 lines (27 loc) · 1.52 KB 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. |