Repository navigation
feat(core): enforce native file-content grants on Linux - #401
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. What shall we delve into next? 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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Trusted embedding hosts can now attach explicit file-content grants to a native command. Linux pins the authorized directories and applies Landlock in the existing launch helper before the payload starts; scripts and descendants inherit the restrictions. Missing authority cannot deserialize as unrestricted access, replaced directories are refused, and retries cannot change the grants.
Verified on Linux 7.2.8: 65 focused core tests and 28 real-worker/process tests passed, plus fmt, lint and Clippy. Disabling enforcement made the new native regression fail on an outside write; restoring it passed. CI includes explicit refusal tests on macOS and Windows. Older Linux kernels without the required Landlock ABI refuse scoped requests.
This is the first enforcement layer, not Auto enablement. Existing approval behavior stays unchanged. Metadata operations, existing hardlinks, policy-file protection, network egress, credential brokering and resource limits remain unfinished. No speed comparison is claimed.