summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-12 12:15:47 -0700
committerGitHub <noreply@github.com>2021-04-12 12:15:47 -0700
commitddffc7fa803fa22033459fd5666679179c3581bc (patch)
tree15292a227a62c4e5b01ff4890b026376764b0bfd /libpod
parenta6fb11e34ccc13e9cfd6ec37030c0634d1bee830 (diff)
parent2fad29ccb2a048eb69f52014ae17db2a11a76256 (diff)
downloadpodman-ddffc7fa803fa22033459fd5666679179c3581bc.tar.gz
podman-ddffc7fa803fa22033459fd5666679179c3581bc.tar.bz2
podman-ddffc7fa803fa22033459fd5666679179c3581bc.zip
Merge pull request #9996 from giuseppe/disable-cgroupfs-rootless-on-cgroup-v2
cgroup: do not set cgroup parent when rootless and cgroupfs
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 4fc45e4f0..1986f7438 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -2216,7 +2216,7 @@ func (c *Container) getOCICgroupPath() (string, error) {
}
cgroupManager := c.CgroupManager()
switch {
- case (rootless.IsRootless() && !unified) || c.config.NoCgroups:
+ case (rootless.IsRootless() && (cgroupManager == config.CgroupfsCgroupsManager || !unified)) || c.config.NoCgroups:
return "", nil
case c.config.CgroupsMode == cgroupSplit:
if c.config.CgroupParent != "" {