Files
shaw 03bd718abe fix(sysutil): confine cgroup limit reads to the mount with os.Root
gosec G703 flagged the cgroup path taken from /proc/self/cgroup flowing
into os.ReadFile. Read the limit files through os.Root instead, so the
path can never resolve outside the cgroup mount (including via symlinks),
and cover the escape cases in tests.
2026-11-09 10:27:08 +08:00
..