mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## Why Windows sandbox preflight could report success when applying a deny ACE failed, leaving a detected world-writable path without the intended capability restriction. ## What changed - Return errors from `SetEntriesInAclW` and `SetNamedSecurityInfoW`, including the affected path in ACL API errors. - Attempt every flagged path, aggregate deny-ACE failures, and fail preflight after logging them. - Preserve cleanup of security descriptors and newly allocated ACLs on failure. ## Testing Added tests that verify ACL API failures are returned and that preflight keeps processing remaining paths before propagating an error. GitOrigin-RevId: e2be1c70f72840046dc55760364de7bcf3b1bdc9