Skip to content

Commit 1fcc5ce

Browse files
linesightclaude
andcommitted
macos: codesign Python interpreter to fix bootstrap namespace restriction
Without an ad-hoc signature on the Python binary (the browser process), process_requirement.cc fails with errSecCSUnsigned (-67030). Chrome responds by launching subprocesses with a restricted bootstrap namespace that cannot see Mach services registered by the parent. This causes bootstrap_look_up for MachPortRendezvousServer to return 1102 regardless of whether the service name is correct. Signing the Python binary (in addition to subprocess and .so files) prevents the namespace restriction and allows subprocesses to find the registered service. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2c0a356 commit 1fcc5ce

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci-macos.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ jobs:
124124
# bootstrap_look_up, causing all subprocesses to crash on startup.
125125
codesign --force --sign - cefpython3/subprocess
126126
for f in cefpython3/cefpython_py*.so; do codesign --force --sign - "$f"; done
127+
# Also sign the Python interpreter (the browser process). Without this,
128+
# process_requirement.cc fails with -67030 (errSecCSUnsigned) and Chrome
129+
# launches subprocesses with a restricted bootstrap namespace, preventing
130+
# bootstrap_look_up from finding the MachPortRendezvousServer service.
131+
codesign --force --sign - "$(python -c 'import sys; print(sys.executable)')"
127132
128133
- name: Run unit tests
129134
run: |

0 commit comments

Comments
 (0)