diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-11-20 11:31:12 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-11-20 11:31:12 +0100 |
commit | 1efb9b5e17a076cefaa17b9f388476138d5157ad (patch) | |
tree | 90c781abbd0d833e1c6c139af7cd3b4695daf243 /.gitignore | |
parent | a18365c908d45a8ee9348c5e32a240a7b9a4091b (diff) | |
download | podman-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions