mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-23 06:58:19 +08:00
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.