mirror of
https://github.com/containers/podman.git
synced 2025-10-15 10:16:28 +08:00
vendor latest c/common
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
6
vendor/github.com/containers/common/pkg/cgroups/cgroups_linux.go
generated
vendored
6
vendor/github.com/containers/common/pkg/cgroups/cgroups_linux.go
generated
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user