Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libct/configs/validator: add some cgroup support
Add some minimal validation for cgroups. The following checks are implemented: - cgroup name and/or prefix (or path) is set; - for cgroup v1, unified resources are not set; - for cgroup v2, if memorySwap is set, memory is also set, and memorySwap > memory. This makes some invalid configurations fail earlier (before runc init is started), which is better. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information