mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
5cdf76719e
Replace a panic with a warning, unless it's ENOENT and we're running in a user namespace. In the latter case, do the same as before, i.e. report the error but using a Debug logging level. This prevents software that uses libcontainer from panicking in some exotic setups. This will also print a warning on some very old systems which does not use /sys/fs/cgroup for cgroup mount point. My bet is such systems no longer exist. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>