Skip to content

Simplify legacy Windows sandbox ACL persistence#22569

Merged
iceweasel-oai merged 1 commit into
mainfrom
codex/persist-windows-sandbox-acls
May 18, 2026
Merged

Simplify legacy Windows sandbox ACL persistence#22569
iceweasel-oai merged 1 commit into
mainfrom
codex/persist-windows-sandbox-acls

Conversation

@iceweasel-oai
Copy link
Copy Markdown
Collaborator

@iceweasel-oai iceweasel-oai commented May 13, 2026

Why

The legacy Windows sandbox still carried a persist_aces mode switch, even though the only path that meaningfully applies filesystem ACEs today is workspace-write, which already uses the persistent behavior. Legacy read-only sessions rely on the read-only capability SID rather than per-command filesystem ACE mutation, so the temporary cleanup branch had become conceptual overhead without a corresponding behavioral need.

Removing that split makes the ACL lifecycle match the current sandbox model more directly and trims the guard/revocation plumbing from the legacy launcher paths.

What changed

  • Removed the persist_aces parameter from legacy ACL preparation.
  • Made legacy deny-read handling always use the persistent reconciliation path.
  • Dropped guard tracking and post-exit ACE revocation from both capture and unified-exec legacy flows.
  • Kept workspace .codex / .agents protection tied directly to WorkspaceWrite instead of an intermediate persistence flag.

Verification

  • cargo fmt -p codex-windows-sandbox
  • git diff --check
  • cargo test -p codex-windows-sandbox
    • 85 passed, 2 ignored, 2 (unrelated) failed locally.

@iceweasel-oai iceweasel-oai marked this pull request as ready for review May 14, 2026 17:15
@iceweasel-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 122e1e96b7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/windows-sandbox-rs/src/spawn_prep.rs
@iceweasel-oai iceweasel-oai requested a review from viyatb-oai May 14, 2026 17:33
@iceweasel-oai iceweasel-oai enabled auto-merge (squash) May 14, 2026 18:29
@iceweasel-oai iceweasel-oai merged commit b1c13b6 into main May 18, 2026
31 checks passed
@iceweasel-oai iceweasel-oai deleted the codex/persist-windows-sandbox-acls branch May 18, 2026 18:00
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants