libpod: split out cgroups call into linux specific file

So that we do not cause compile error on freebsd.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2023-12-05 17:49:10 +01:00
parent 32c25c6026
commit 03d411abc0
3 changed files with 9 additions and 2 deletions

View File

@ -326,3 +326,7 @@ func GetLimits(resource *spec.LinuxResources) (runcconfig.Resources, error) {
final.Unified = resource.Unified
return *final, nil
}
func moveToRuntimeCgroup() error {
return cgroups.MoveUnderCgroupSubtree("runtime")
}