mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
96193422ea
Apparently, not all files listed in /sys/kernel/cgroup/delegate must exist in every cgroup, so we should ignore ENOENT. Dot not ignore ENOENT on the directory itself though. Change cgroupFilesToChown to not return ".", and refactor it to not do any dynamic slice appending in case we're using the default built-in list of files. Fixes:35d20c4e0Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit8c04b98100) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>