Module utils

Module utils 

Source
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