mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## Why Sandboxed commands inherit the user's controlling terminal. Without an explicit restriction, a child can use `TIOCSTI` to queue input for the unsandboxed shell that resumes after Codex exits. ## What changed Append a `file-ioctl` denial for `TIOCSTI` after the shared Seatbelt policy allowances used by `codex sandbox`. ## Testing Add a macOS PTY integration test that first proves terminal input injection works without the sandbox, then verifies Seatbelt rejects it with `EPERM`. GitOrigin-RevId: 5a8b0a5b4fd980cc406ad184d04ceae9b0ea90e4