summaryrefslogtreecommitdiff
path: root/utils/utils_supported.go
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-30 16:09:07 +0000
committerGitHub <noreply@github.com>2022-06-30 16:09:07 +0000
commit5a222a8e601b2ef413c39edf5d49d2f140d7a72b (patch)
treedfc987fa246e45cc7cdfe380dee7a14767c4d16d /utils/utils_supported.go
parent3e8ab312395b32d0b43f1ac82adf53439b012893 (diff)
parentbd51410b8d16093e9c397b1e620baa08e910890c (diff)
downloadpodman-5a222a8e601b2ef413c39edf5d49d2f140d7a72b.tar.gz
podman-5a222a8e601b2ef413c39edf5d49d2f140d7a72b.tar.bz2
podman-5a222a8e601b2ef413c39edf5d49d2f140d7a72b.zip
Merge pull request #14787 from giuseppe/move-systemd-service-to-subcgroup
service: do not run under the root cgroup
Diffstat (limited to 'utils/utils_supported.go')
-rw-r--r--utils/utils_supported.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utils_supported.go b/utils/utils_supported.go
index c2dcc4631..6378212b6 100644
--- a/utils/utils_supported.go
+++ b/utils/utils_supported.go
@@ -137,7 +137,7 @@ func moveUnderCgroup(cgroup, subtree string, processes []uint32) error {
}
// root cgroup, skip it
- if parts[2] == "/" {
+ if parts[2] == "/" && !(unifiedMode && parts[1] == "") {
continue
}