cgroup2_mount#

Run commands and agent-written programs inside an operating-system boundary. See the guide.

zett_agent.sandbox.resources.cgroup2_mount(mountinfo_path=None)[source]#

Return the cgroup v2 mount point, or None when the machine has no unified hierarchy.

Linux only. The mount is found in /proc/self/mountinfo as a cgroup2 entry; a machine on the old split hierarchy reports nothing here.

Parameters:

mountinfo_path (Path | None)

Return type:

Path | None