Repository navigation
feat(core): contain macOS commands with native filesystem and network policy - #412
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (1)ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
@codex security review |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
🛡️ Codex Security Review
Here are some automated security review suggestions for this pull request.
Reviewed commit: 67a86fff2d
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
|
@codex review |
macOS shell/exec commands can now enforce explicit filesystem and network grants through a trusted helper and default-deny Seatbelt profile. The worker retains cancellation, deadlines, output and durable results, closes inherited descriptors, and kills descendants on completion or owner loss.
Review fixes protect the helper with a private executable copy, refuse writable grants over that copy, and preserve cancellation/observation state when duplicate submissions race with a full journal. Regressions cover helper replacement, symlinks, hardlinks and ancestor replacement, plus the duplicate-admission interleaving. Both bugs were reproduced before fixing them.
Verification: 52 focused command-owner/helper tests passed; all-target/all-feature core clippy and repository lint passed. The full local check ran once: 2,372 tests passed, but edits during that run invalidated its final receipt. All CI jobs passed on head b906ce0, including native macOS and Windows with the new regressions. Native containment tests exercise allowed writes, denied outside access and egress, aliases, descriptors and process-group escapes.
This does not enable containment by default in Auto. Default task preparation/publication, ordinary task continuation after restart, controlled credential/egress operations, Windows containment and complete resource limits remain unfinished. Unsupported enforcement requests fail closed; explicit host scopes retain host access.