Skip to content

feat(core): isolate native command networking on Linux - #402

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

lg2m merged 1 commit into
feat/auto-command-boundaryfrom
feat/auto-network-boundary

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Adds an explicit native network authority alongside the filesystem grants in #401. On Linux, isolated commands get a private network namespace and Landlock denial of host Unix sockets. The trusted helper also closes ambient inherited descriptors before every payload launch, preventing an already-open host socket from bypassing the boundary. Standard streams and private unnamed socket-pair IPC continue to work.

Verified: the real-worker regression first reached host TCP/UDP/Unix services, then separately exposed an inherited host socket. Both failures are fixed for shell, exec and descendants. 65 focused core tests and 30 real-worker/process tests passed; the strengthened shell/exec network case passed again, along with fmt, lint and Clippy. CI tests explicit refusal on macOS and Windows.

Auto is not enabled on these primitives yet. This offline backend has no configured egress or enabled loopback service; credential brokering, complete filesystem/trust protection, resource limits and native macOS/Windows enforcement remain unfinished. No comparative speed claim.

@lg2m lg2m added the ci:full label Oct 21, 2026
@lg2m
lg2m added this pull request to stack #403 October 21, 2026 20:34
@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:08.465136Z 8a1ad5a Manual request
🔒 Security Review 🔄 Running since 2026-10-21T20:35:06.951474Z 8a1ad5a 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. 👍

Reviewed commit: 8a1ad5ad71

ℹ️ 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 40728f8 into main Oct 22, 2026
14 of 15 checks passed
@lg2m
lg2m deleted the feat/auto-network-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