From db1389262394553c2ff86bedc43f8a6fca71085d Mon Sep 17 00:00:00 2001 From: Kornilios Kourtis Date: Wed, 6 Mar 2024 07:48:41 +0100 Subject: [PATCH] cgroups: skip crio-conmon container in fsscan Skip crio-conmon container when scanning for the cgroup of a container in the filesystem. Signed-off-by: Kornilios Kourtis --- pkg/cgroups/fsscan/fsscan.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cgroups/fsscan/fsscan.go b/pkg/cgroups/fsscan/fsscan.go index d998bd1b8cd..1312175e400 100644 --- a/pkg/cgroups/fsscan/fsscan.go +++ b/pkg/cgroups/fsscan/fsscan.go @@ -151,6 +151,10 @@ func findContainerDirectory(podpath string, containerID string) string { } name := dentry.Name() + // skip crio's conmon container + if strings.Contains(name, "crio-conmon") { + continue + } if strings.Contains(name, containerID) { return name }