-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
libpod: allow userns=keep-id for root #17350
libpod: allow userns=keep-id for root #17350
Conversation
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 |
Is there an actual difference between running in a userns with the same mappings compared to just running in the host ns? |
only minor differences compared to using a mapping where the "real" root is not mapped. There are few places in the kernel that just check if it is running in the initial user namespace. |
copy the current mapping into a new user namespace, and run into a separate user namespace. Closes: containers#17337 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
da26ccb
to
de63ad7
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
I changed your release note because it said --userns=auto instead of keep-id, assuming that this was a typo.
copy the current mapping into a new user namespace, and run into a separate user namespace.
Closes: #17337
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com
Does this PR introduce a user-facing change?