vendor latest c/common

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-09-18 19:21:50 +02:00
parent 04d193daa9
commit 6dcda2196a
4 changed files with 10 additions and 4 deletions

View File

@ -822,6 +822,12 @@ func UserOwnsCurrentSystemdCgroup() (bool, error) {
continue
}
// If we are on a cgroup v2 system and there are cgroup v1 controllers
// mounted, ignore them when the current process is at the root cgroup.
if cgroup2 && parts[1] != "" && parts[2] == "/" {
continue
}
var cgroupPath string
if cgroup2 {