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
server: mount cgroup with rslave #4575
server: mount cgroup with rslave #4575
Conversation
even when running as privileged container, prevent cgroup mounts to be propagated to the host as it could cause errors when running with rshared and systemd inside of the container. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1903553 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM |
Codecov Report
@@ Coverage Diff @@
## master #4575 +/- ##
=======================================
Coverage 40.44% 40.44%
=======================================
Files 115 115
Lines 9385 9385
=======================================
Hits 3796 3796
Misses 5161 5161
Partials 428 428 |
@giuseppe: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@haircommander @mrunalp PTAL |
/lgtm |
/cherry-pick release-1.19 |
@giuseppe: #4575 failed to apply on top of branch "release-1.19":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cherry-pick release-1.20 |
@giuseppe: new pull request created: #4577 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Let's only mount "/sys" and "/sys/fs/cgroup" as "rslave" in the case of "OCI" containers, as cri-o#4575 broke privileged containers when used with kata-containers. Fixes: cri-o#4765 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Let's only mount "/sys" and "/sys/fs/cgroup" as "rslave" in the case of "OCI" containers, as cri-o#4575 broke privileged containers when used with kata-containers. Fixes: cri-o#4765 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
even when running as privileged container, prevent cgroup mounts to be
propagated to the host as it could cause errors when running with
rshared and systemd inside of the container.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1903553
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
fixes https://bugzilla.redhat.com/show_bug.cgi?id=1903553
Which issue(s) this PR fixes:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1903553
Special notes for your reviewer:
Does this PR introduce a user-facing change?