Skip to content

Update default runsc flags configuration - #2361

Merged
Benjamin Elder (BenTheElder) merged 1 commit into
agent-substrate:mainfrom
fvoznika:runsc-default-flags
Oct 17, 2026
Merged

Benjamin Elder (BenTheElder) merged 1 commit into
agent-substrate:mainfrom
fvoznika:runsc-default-flags

Conversation

@fvoznika

@fvoznika Fabricio Voznika (fvoznika) commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Update default runsc flags configuration

Configure additional global flags for runsc sandboxes:

  • --allow-suid: allow setuid/setgid executables to run properly inside the
    sandbox (e.g. sudo). This behavior is controlled by the
    Process.NoNewPrivileges flag.
  • --host-settings=ignore: avoid redundant host kernel setting checks during
    startup.

AI disclosure: AI tooling assisted in writing and testing parts of this change.

Updates #2136

  • Tests pass
  • Appropriate changes to documentation are included in the PR

Jake Gaylor (jhgaylor) added a commit to arugula-salad/sandpit that referenced this pull request Oct 10, 2026
…20)

* substrate: ports through the agent; workers with runsc --allow-suid

- An agent guest's ports go through its agent (engine.AgentDialPort), as on
  Firecracker: any TCP, and "http", the sprite's own HTTP service started on
  demand, which the Sprites API's URL proxy asks for. Through the router
  only E2B's agentless guest goes.
- The WorkerPool runs home-cloud's ateom-gvisor v0.4.0-hc1, which passes
  runsc --allow-suid (upstream agent-substrate/substrate#2361), so sudo works
  in the guests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* k8s: pin this branch's tested sandpitd

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@BenTheElder

Copy link
Copy Markdown
Collaborator

changes from this PR LGTM, discussing the underlying previous PR though.

@BenTheElder

Benjamin Elder (BenTheElder) commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Davanum Srinivas (@dims) there's a logical conflict with one of your PRs trying to disable new-privs inside uVM, I think we need to follow up with Greg Castle (@destijl) about that.

@fvoznika
Fabricio Voznika (fvoznika) force-pushed the runsc-default-flags branch 2 times, most recently from 544da0f to 6c29250 Compare October 13, 2026 23:53
@destijl

Copy link
Copy Markdown
Collaborator

Benjamin Elder (@BenTheElder) can you point at the issue? Not sure what I should be looking at.

@BenTheElder

Copy link
Copy Markdown
Collaborator

er, that was #1904 Greg Castle (@destijl)

@BenTheElder

Copy link
Copy Markdown
Collaborator

I synced with dims, we agree just to make the behavior the same, and this direction is agreeable.

Happy to merge this when rebased

@fvoznika
Fabricio Voznika (fvoznika) force-pushed the runsc-default-flags branch 2 times, most recently from 76bc6e1 to ebe993d Compare October 14, 2026 23:47
@fvoznika

Copy link
Copy Markdown
Collaborator Author

Core tag cannot be set unconditionally. I'll send another PR for that.

@BenTheElder

Copy link
Copy Markdown
Collaborator

[did not see this in time after the rebase, will have to try again, we're merging a lot at the moment]

@zlammerts-svg

Copy link
Copy Markdown
Collaborator

Benjamin Elder (@BenTheElder) I explicitly requested you to review and provide approval for this PR. Thanks a lot!

Configure additional global flags for runsc sandboxes:
- --allow-suid: allow setuid/setgid executables to run properly inside the
  sandbox (e.g. sudo). This behavior is controlled by the
  Process.NoNewPrivileges flag.
- --host-settings=ignore: avoid redundant host kernel setting checks during
  startup.

*AI disclosure: AI tooling assisted in writing and testing parts of this change.*

Fixes agent-substrate#2136

- [x] Tests pass
- [x] Appropriate changes to documentation are included in the PR
@BenTheElder
Benjamin Elder (BenTheElder) added this pull request to the merge queue Oct 17, 2026
Merged via the queue into agent-substrate:main with commit db19661 Oct 17, 2026
15 checks passed
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.

4 participants