Skip to content

runsc/cgroup: clarify systemd cgroupfs path errors#13277

Open
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:codex/gvisor-systemd-cgroup-path
Open

runsc/cgroup: clarify systemd cgroupfs path errors#13277
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:codex/gvisor-systemd-cgroup-path

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Updates #13258.

Summary

  • return a more specific error when --systemd-cgroup is used with a cgroupfs-style cgroupsPath
  • document that containerd must pass systemd slice:prefix:name paths before enabling systemd-cgroup
  • add a verification step for Kubernetes/containerd users to confirm the sandbox is in the limited cgroup

Tests

  • git diff --check
  • go test ./runsc/cgroup -run TestTransformSystemdPathRejectsCgroupfsPath (fails locally before compiling tests: pkg/refs has both refs and refs_template packages under plain Go tooling)
  • bazel test //runsc/cgroup:cgroup_test --test_filter=TestTransformSystemdPathRejectsCgroupfsPath (fails locally before running tests: /usr/bin/x86_64-linux-gnu-gcc is not present for //vdso:vdso on this macOS host)

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 24, 2026 17:12
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