Skip to content

feat(core): enforce native file-content grants on Linux - #401

Merged
lg2m merged 1 commit into
mainfrom
feat/auto-command-boundary
Oct 22, 2026
Merged

lg2m merged 1 commit into
mainfrom
feat/auto-command-boundary

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

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.

@lg2m lg2m added the ci:full label Oct 21, 2026
@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-21T20:36:20.493009Z b870ba1 Manual request
🔒 Security Review ✅ Completed 2026-10-21T20:38:32.584671Z b870ba1 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. What shall we delve into next?

Reviewed commit: b870ba1733

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

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: b870ba1733

View security finding report

Only the user who started this review can view the report in Codex.

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

@lg2m
lg2m merged commit 98de58d into main Oct 22, 2026
13 of 18 checks passed
@lg2m
lg2m deleted the feat/auto-command-boundary 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