aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorJason T. Greene <jason.greene@redhat.com>2022-05-20 21:19:38 -0500
committerMatthew Heon <mheon@redhat.com>2022-06-14 14:26:55 -0400
commit24ef21ebdf67b64b2a19de7cd65358771f0be732 (patch)
tree4427de8a7e66eb2b0ed1af5319510d311f25e359 /libpod
parenta71d8c9c8e6136b67925c618c9feeb2e7dc6d593 (diff)
downloadpodman-24ef21ebdf67b64b2a19de7cd65358771f0be732.tar.gz
podman-24ef21ebdf67b64b2a19de7cd65358771f0be732.tar.bz2
podman-24ef21ebdf67b64b2a19de7cd65358771f0be732.zip
Support running podman under a root v2 cgroup
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
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 82e5fa992..298eb1947 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -3109,7 +3109,7 @@ func (c *Container) getOCICgroupPath() (string, error) {
case c.config.NoCgroups:
return "", nil
case c.config.CgroupsMode == cgroupSplit:
- selfCgroup, err := utils.GetOwnCgroup()
+ selfCgroup, err := utils.GetOwnCgroupDisallowRoot()
if err != nil {
return "", err
}