Expand description
Utility functions for sandbox operations
Functions§
- cgroup_
exists - Check if a cgroup path exists
- get_gid
- Get current GID
- get_uid
- Get current UID
- has_
cgroup_ v2 - Check if cgroup v2 is available
- is_root
- Check if running as root
- parse_
memory_ size - Parse memory size string (e.g., “100M”, “1G”)
- require_
root - Ensure we have root privileges