jail: parse OCI cgroups resources
authorDaniel Golle <daniel@makrotopia.org>
Wed, 5 Aug 2020 17:37:53 +0000 (18:37 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 6 Aug 2020 14:19:18 +0000 (15:19 +0100)
commit16159bb1f70f662738395f2750a7a5e74a410408
tree6d990a0a8ffa047f790fd2f552fd16a050e520fa
parent83053b6a59e087087f35a4834a61a30ec64f61ba
jail: parse OCI cgroups resources

Start pure cgroup2 implementation with emulation of (some) cgroup1
properties.
Initially support converting cpu, memory, blockIO, pids to unified in
addition to directly specifying unified attributes as suggested in
https://github.com/opencontainers/runtime-spec/pull/1040

Support for converting devices and network into BPF programs is
planned.

Now that containers have their representation in the unified cgroup
hierarchy, make sure using cgroup namespaces also produces meaningful
results.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
CMakeLists.txt
jail/cgroups.c [new file with mode: 0644]
jail/cgroups.h [new file with mode: 0644]
jail/jail.c