Skip to content

feat(sandbox): add Linux Rootless Podman backend - #28

Merged
wangzhizhou merged 10 commits into
mainfrom
m4/linux-rootless-podman-backend
Nov 22, 2026
Merged

wangzhizhou merged 10 commits into
mainfrom
m4/linux-rootless-podman-backend

Conversation

@wangzhizhou

Copy link
Copy Markdown
Contributor

Summary

  • Add a Linux Rootless Podman backend with conservative capability probing for rootless mode, subordinate UID/GID mappings, cgroup v2, systemd delegation, and cpu/memory/pids controllers.
  • Register the backend on Linux while preserving fail-closed behavior on unsupported hosts.
  • Launch with a digest-pinned, locally preloaded image; private namespaces; network none; read-only rootfs; dropped capabilities; no-new-privileges; private tmpfs; workspace-only mount; and explicit resource limits.
  • Reject shared Git worktree pointers, git common-dir files, and object alternates.
  • Require immutable runtime image references in the sandbox profile schema and add launcher contract tests/docs.

Verification boundary

Unit tests cover profile validation, backend argv construction, policy refusal and environment shaping. They do not prove kernel-level filesystem/network isolation or effective cgroup enforcement. M4.4 remains incomplete pending a dedicated Linux worker conformance suite and a real, verified runtime image digest. No hosted-model credentials or network egress are exposed; profiles requesting proxy or secret-broker capabilities remain ineligible.

@wangzhizhou
wangzhizhou merged commit 161a5fd into main Nov 22, 2026
1 check 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.

1 participant