summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-11-20 11:31:12 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-11-20 11:31:12 +0100
commit1efb9b5e17a076cefaa17b9f388476138d5157ad (patch)
tree90c781abbd0d833e1c6c139af7cd3b4695daf243 /nix
parenta18365c908d45a8ee9348c5e32a240a7b9a4091b (diff)
downloadpodman-1efb9b5e17a076cefaa17b9f388476138d5157ad.tar.gz
podman-1efb9b5e17a076cefaa17b9f388476138d5157ad.tar.bz2
podman-1efb9b5e17a076cefaa17b9f388476138d5157ad.zip
fix container cgroup lookup
When running on cgroups v1, `/proc/{PID}/cgroup` has multiple entries, each pointing potentially to a different cgroup. Some may be empty, some may point to parents. The one we really need is the libpod-specific one, which always is the longest path. So instead of looking at the first entry, look at all and select the longest one. Fixes: #8397 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'nix')
0 files changed, 0 insertions, 0 deletions