Skip to content

feat(core): contain macOS commands with native filesystem and network policy - #412

Merged
lg2m merged 14 commits into
mainfrom
feat/macos-containment
Oct 22, 2026
Merged

lg2m merged 14 commits into
mainfrom
feat/macos-containment

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@lg2m lg2m added the ci:full label Oct 22, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-22T04:47:13.169465Z b906ce0 Manual request
🔒 Security Review ✅ Completed 2026-10-22T03:20:36.853581Z 67a86ff Manual request

Security findings

Advisory findings (1)

ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛡️ 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.

Comment thread crates/qq-core/src/tools/macos_owner.rs Resolved
@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@lg2m
lg2m merged commit 17ebc53 into main Oct 22, 2026
8 checks passed
@lg2m
lg2m deleted the feat/macos-containment branch October 22, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant