Repository navigation
feat(core): isolate native command networking on Linux - #402
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. 👍 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". |
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.