Repository navigation
feat(core): isolate scoped command filesystem metadata on Linux - #404
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ 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 Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Scoped Linux commands could still change read-only input metadata with
chmodeven 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.