mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why The Linux sandbox rejected bind mounts of ancestors of the app-server socket directory, even when the exposed socket paths could be masked. This prevented sandbox startup with otherwise usable temporary-directory mount layouts. ## What changed - Collect the socket directory and its exposed ancestor-mount aliases, then mask each path after filesystem binds, including read-only subpaths and the synthetic-mount registry. - Continue rejecting direct directory or socket aliases and nested mounts that cannot preserve socket isolation. - Reject non-UTF-8 mask destinations to avoid masking a different path through lossy conversion. ## Testing Extend mount-analysis tests for ancestor aliases, private temporary directories, and WSLg masks. Extend socket-isolation coverage to verify that ancestor and registry aliases hide daemon sockets while unrelated sockets remain reachable. Add a regression test for non-UTF-8 mask paths. GitOrigin-RevId: 49a9a764fbe1fddacd99c3a78099fbffff53b944