Skip to content

Support "--control-fd" only and proxying multiple VMs - #221

Merged
edi-oai merged 8 commits into
mainfrom
dev/edi/control-fd-only
Oct 27, 2026
Merged

edi-oai merged 8 commits into
mainfrom
dev/edi/control-fd-only

Conversation

@edi-oai

@edi-oai edi-oai commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Problem

Softnet requires a VM socket, MAC address, etc. at startup and supports only one VM per process.

Solution

Allow running Softnet with --control-fd only. A user then calls softnet.initialize to send VM sockets through SCM_RIGHTS and Softnet initializes up to five VMs on a shared /29 network.

VM IDs and MAC addresses are returned back from softnet.initialize and allow for further per-VM policy updates with softnet.policy.set.

The softnet.initialize can only be called once, however, because of the vmnet framework's limitations and the fact that we do privilege dropping.

Related

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-27T15:30:08.397581Z 6c19374 New commits
🔒 Security Review ✅ Completed 2026-10-27T15:32:32.532340Z 6c19374 New commits
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f095b62308

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

Comment thread lib/control_transport.rs Resolved
Comment thread lib/control.rs Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread lib/control.rs Resolved
Comment thread lib/control_transport.rs Resolved
Comment thread lib/manager.rs Resolved
Comment thread lib/manager.rs Resolved
@edi-oai
edi-oai requested a review from yzhuang-oai October 27, 2026 15:28
@edi-oai
edi-oai merged commit f834910 into main Oct 27, 2026
2 checks passed
@edi-oai
edi-oai deleted the dev/edi/control-fd-only branch October 27, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants