From 15dc7b516e7c7e9c111298978d333350d7f11bba Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 17 Jun 2025 15:35:29 -0700 Subject: [PATCH] libct/configs: stop using deprecated id Signed-off-by: Kir Kolyshkin (cherry picked from commit d22a42113dc01c0e0ee19a8073f784ca83f1a8af) Signed-off-by: Kir Kolyshkin --- libcontainer/configs/config.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcontainer/configs/config.go b/libcontainer/configs/config.go index 92773aceb..3869a2edc 100644 --- a/libcontainer/configs/config.go +++ b/libcontainer/configs/config.go @@ -16,6 +16,7 @@ import ( "github.com/sirupsen/logrus" "golang.org/x/sys/unix" + "github.com/opencontainers/cgroups" devices "github.com/opencontainers/cgroups/devices/config" "github.com/opencontainers/runtime-spec/specs-go" ) @@ -144,8 +145,8 @@ type Config struct { Routes []*Route `json:"routes"` // Cgroups specifies specific cgroup settings for the various subsystems that the container is - // placed into to limit the resources the container has available - Cgroups *Cgroup `json:"cgroups"` + // placed into to limit the resources the container has available. + Cgroups *cgroups.Cgroup `json:"cgroups"` // AppArmorProfile specifies the profile to apply to the process running in the container and is // change at the time the process is execed