Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle case where cgroup v1 freezer is disabled
On cgroup v1 it is possible to disable freezer subsystem. In such case freezer.state file won't be present. Due to the race condition handling in libcrun_get_container_state_string, missing freezer.state would be interpreted as cgroup being removed when check is being performed. But as indicated earlier, that is not the case when it's cgroup v1 and the freezer is disabled. Therefore introduce logic that checks for that using type of the filesystem mounted under the freezer directory. When freezer is disabled, container simply cannot be paused. Fixes #1612 Signed-off-by: Michal Sieron <michalwsieron@gmail.com>
- Loading branch information