Skip to content
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

[27.x backport] daemon: use OwnCgroupPath in withCgroups #48742

Conversation

austinvazquez
Copy link
Contributor

- What I did

Note: this usage comes from commit 56f77d5 (part of PR 23430).

cgroups.InitCgroupPath is removed from runc (see 1), and it is suggested that users use OwnCgroupPath instead, because using init"s is problematic when in host PID namespace (see 2) and is generally not the right thing to do (see 3).

(cherry picked from commit 6be2074)

- How I did it

git cherry-pick -xsS 6be2074aefa60c3301dd728e7f9f6335a372c55a

- How to verify it

- Description for the changelog

Remove cgroups.InitCgroupPath usage

- A picture of a cute animal (not mandatory but encouraged)

Note: this usage comes from commit 56f77d5 (part of PR 23430).

cgroups.InitCgroupPath is removed from runc (see [1]), and it is
suggested that users use OwnCgroupPath instead, because using init"s is
problematic when in host PID namespace (see [2]) and is generally not
the right thing to do (see [3]).

[1]: opencontainers/runc@fd5debf3
[2]: opencontainers/runc@2b28b3c2
[3]: opencontainers/runc@54e20217

Signed-off-by: Kir Kolyshkin <[email protected]>
(cherry picked from commit 6be2074)
Signed-off-by: Austin Vazquez <[email protected]>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit 885b6e6 into moby:27.x Oct 24, 2024
135 checks passed
@austinvazquez austinvazquez deleted the cherry-pick-6be2074aefa60c3301dd728e7f9f6335a372c55a-to-27.x branch October 24, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants