Files
codex/codex-rs/linux-sandbox/tests/suite
viyatb-oai ad161203cb Mask system SSH config drop-ins in the Linux sandbox (#61947)
## Why

Host root-owned SSH config drop-ins can appear to belong to `nobody` inside the user namespace, causing OpenSSH to reject them and preventing SSH connections.

## What changed

Mask `/etc/ssh/ssh_config.d` with an empty, read-only directory by default for filesystem-restricted commands. Preserve explicit read grants to drop-ins and overlapping write grants, and avoid masking through symlinks or unsafe ancestor directories.

The main `/etc/ssh/ssh_config` and user configuration still apply. Settings in masked drop-ins, including `KnownHostsCommand`, are skipped.

## Testing

Add an isolated SSH handshake regression test that verifies a connection succeeds with system drop-ins masked and that a changed host key is still rejected.

GitOrigin-RevId: e8d9cd7a4bd29480d1b930efc96510362a88d3fc
2026-11-17 02:32:53 +00:00
..
…