-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix runc ps issue #1013
Fix runc ps issue #1013
Conversation
After opencontainers#1009, we don't always set `cgroup.Paths`, so `getCgroupPath()` will return wrong cgroup path because it'll take current process's cgroup as the parent, which would be wrong when we try to find the cgroup path in `runc ps` and `runc kill`. Fix it by using `m.GetPath()` to get the true cgroup paths. Reported-by: Yang Shukui <[email protected]> Signed-off-by: Qiang Huang <[email protected]>
Fixes: opencontainers#1034 Fixes: opencontainers#1031 Signed-off-by: Qiang Huang <[email protected]>
I added a commit to fix update and pause issues, PTAL @crosbymichael @cyphar BTW janky didn't cache this because we use |
@cyphar Not as I can find, now |
After #1009, we don't always set
cgroup.Paths
, sogetCgroupPath()
will return wrong cgroup path becauseit'll take current process's cgroup as the parent, which
would be wrong when we try to find the cgroup path in
runc ps
.Fix it by using
m.GetPath()
to get the true cgrouppaths.
Also Fixes: #1034
Fixes: #1031
Reported-by: Yang Shukui [email protected]
Signed-off-by: Qiang Huang [email protected]