Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat EROFS in cgroups setup as skippable error
Currently cgroup setup ignores permissions errors. AFAIK this helps with rootless containers: if user have permissions to change cgroups, it will have them setup, otherwise rootless container will use parent process cgroups (as it was with rootless containers before cgroups support was introduced). If cgroup is mounted in read-only mode (e.g. inside Docker container), operations will return not permission error, but EROFS - this patch treats EROFS as skippable error in cgroups setup. Signed-off-by: Vladimir Rutsky <[email protected]>
- Loading branch information