-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
patch for pod host networking & other host namespace handling #14480
Conversation
@Luap99 PTAL. Not sure if the new helper functions for getting the NS type are as easy as I made them to be |
Please fix your checkin messages. I don't want to have to look up 14461 |
circling back to this in the morning, I figured out the issue. @umohnani8 is there any way currently to delineate between host and auto userns once the pod is created? If not, I think here the ctr is assuming the host userns even when |
Host User Namespace would have either the UID 0 or the Current UID mapped into the idmappings, or no idmappings, while auto would always have UID 0 NOT in the mappings. |
@containers/podman-maintainers PTAL |
this patch included additonal host namespace checks when creating a ctr as well as fixing of the tests to check /proc/self/ns/net see containers#14461 Signed-off-by: cdoern <cdoern@redhat.com>
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 @mheon please give this a quick once over and merge |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdoern, rhatdan 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 |
this patch included additonal host namespace checks when creating a ctr as well
as fixing of the tests to check /proc/self/ns/net
Signed-off-by: cdoern cdoern@redhat.com
see #14461
Does this PR introduce a user-facing change?