Skip to content

v1.0.0: Sandbox the compile execution path (extend unshare/bwrap beyond suco run) #43

Description

@MicBur

Roadmap: v1.0.0

src/worker/worker.cpp:42 (C3) already sandboxes the suco run arbitrary-command surface via unshare(1) (user+mount+pid namespaces, no-network, fails closed, opt-in SUCO_SANDBOX=1, startup self-check). This item extends isolation to the compile job path (g++ -c on remote workers) so a hostile/buggy TU can't touch the worker host on a shared LAN.

Scope

  • Apply the namespace sandbox to the compiler invocation in the job executor (not just suco run)
  • Keep fail-closed semantics and the startup capability self-check
  • Measure per-TU overhead (must not regress the cold-build numbers meaningfully)
  • Optional bubblewrap backend where available — note: blocked on apt install bubblewrap on the nodes (owner action); the unshare path needs no package and works today
  • Docs: threat model + how to enable

Lane: Linux/grid (Claude).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions