-
Notifications
You must be signed in to change notification settings - Fork 261
idmap: force PRIVATE propagation #2269
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
Conversation
do not leak idmapped mounts to other namespaces, since they are meant to be used privately by overlay. This is already done with the default configuration, since we have a private mount on top of the graphdriver directory, but it is not the case when `skip_home_mount` is used. Closes: https://issues.redhat.com/browse/OCPBUGS-49927 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
tested by vendoring into CRI-O and running on openshift and it works for me! |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, 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 |
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
/lgtm |
@haircommander do we need to backport it? |
Yes indeed! To 9.6 branches |
/cherry-pick release-1.57 |
@giuseppe: new pull request created: #2272 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-sigs/prow repository. |
@giuseppe Could you elaborate this? I'd like to know whether other older OCP versions could be affected and whether we have to backport this to older cri-o versions. |
the issue happens only when If you set it to false, then you don't hit the problem. |
It's not an issue before we run on 9.6, which starts in 4.19 |
@haircommander Yeah I know. I just wonder if it happens when we set |
It's been set that way for a while |
It's some interaction with idmapped overlay which only landed in 9.6 and skip_mount_home |
Bump c/storage to v1.57.2 to force idm map private propacation per containers/storage#2269 This is targeted for RHEL 9.6/10.0 ZeroDay. Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This breaks podman tests
I reproduced locally and if I revert this part it works again so I am confident that this is caused by this change. (before backporting fixes it would be nice to run them through the full podman CI first in the future so we know they don't cause regressions) |
Just for historical traceability, the fix in c/storage: #2269 was put into RHEL 9.6 ZeroDay with https://issues.redhat.com/browse/RHEL-82509 and RHEL 10.0 ZeroDay with https://issues.redhat.com/browse/RHEL-82511 |
do not leak idmapped mounts to other namespaces, since they are meant to be used privately by overlay.
This is already done with the default configuration, since we have a private mount on top of the graphdriver directory, but it is not the case when
skip_home_mount
is used.Closes: https://issues.redhat.com/browse/OCPBUGS-49927