Files
codex/codex-rs/windows-sandbox-rs
zm-oai 5a529c2909 Preserve file permissions during repeated Windows sandbox setup (#60943)
## Why

Reapplying directory ACLs during registered sandbox setup can change permissions on existing files moved into the sandbox directory.

## What changed

During `ProvisionOnly` setup for a registered runtime, verify both persistent sandbox directories' ACLs before writing them. Skip both writes when the explicit permissions match the expected policy, allowing additional inherited entries. If verification fails or either policy differs, apply the directory policies as before.

## Testing

Add a regression test that repeats registered setup and verifies that a moved file remains unwritable by the sandbox group while a newly created file inherits write access.

GitOrigin-RevId: fb199001fc554903064618b86562b2ff0d0384c5
2026-11-12 00:28:23 +00:00
..