Frankly speaking (in longer term) I think we should not carry cgroups related code in the `shim` crate. shim crate supposed to be the foundation for building new shim runtimes for containers on all platforms, without carrying any implementation details.
Originally posted by @mxpv in https://github.com/containerd/rust-extensions/issues/254#issuecomment-2000413079