Skip to content

feat(core): isolate scoped command filesystem metadata on Linux - #404

Merged
lg2m merged 1 commit into
feat/auto-network-boundaryfrom
feat/auto-filesystem-root
Oct 22, 2026
Merged

lg2m merged 1 commit into
feat/auto-network-boundaryfrom
feat/auto-filesystem-root

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Scoped Linux commands could still change read-only input metadata with chmod even when Landlock denied content writes. Build a private mount root from pinned, identity-checked grants, mount read-only inputs read-only, and detach the host root before executing the payload. Preserve nested working directories and frozen PATH aliases; drop setup capabilities and prevent user-namespace reentry before scripts or descendants run. Setup failure refuses execution.

Verified: a negative control reproduces the metadata escape without this layer; 36 real worker/process tests and 65 focused core tests pass, including capability, namespace, setup-refusal, nested-grant and PATH regressions. Formatting, repository lint and Clippy pass. Full platform checks run in CI, per the requested workflow. Uses the existing safe Rustix dependency; no new package.

Third layer after #401 and #402. Auto does not select these primitives yet. External hardlink aliases, policy-file protection, credential brokering, authorized egress, resource limits, and macOS/Windows containment remain before Auto enablement. No comparative performance claim.

@lg2m lg2m added the ci:full label Oct 21, 2026
@lg2m
lg2m added this pull request to stack #403 October 21, 2026 22:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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 ✅ Completed 2026-10-21T22:09:49.194535Z be5293c Manual request
🔒 Security Review 🔄 Running since 2026-10-21T22:07:52.828717Z be5293c Manual request
ℹ️ 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 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@lg2m

lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: be5293c778

ℹ️ 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".

@lg2m
lg2m merged commit 5945c14 into main Oct 22, 2026
11 of 16 checks passed
@lg2m
lg2m deleted the feat/auto-filesystem-root branch October 22, 2026 01:30
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