-
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
Don't freeze cgroup on update for systemd cgroup v2 #3067
Conversation
3f36eeb
to
125f33b
Compare
Indeed, I reinstated the freeze because of #3014, which is v1 only bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second commit looks good; I don't like code duplication in the first one.
Run device update tests on cgroup v2, and add a test verifying that we don't allow access to devices when we don't intend to. Signed-off-by: Odin Ugedal <[email protected]>
Since device updates in cgroup v2 are atomic for systemd, there is no need to freeze the processes before running the updates. Signed-off-by: Odin Ugedal <[email protected]>
125f33b
to
f33be7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @odinuge for the update. I treat this as an improvement (rather than a bug fix), and so this is not a candidate for 1.0 backport. Let me know if you disagree. |
@cyphar @AkihiroSuda @mrunalp PTAL |
OK, I found out this is actually a bug fix -- it fixes the inability to freeze the container/cgroup via cgroup manager's While I find using Set for freezing cgroup questionable (as the freezer is kind of special -- and so we have This PR fixes the ability to freeze systemd/v2 cgroup via So, this is a bug, but I still don't think it calls for 1.0 backport. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
1.0 backport: #3092