Skip to content
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

linux: always use direct mapping #1147

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

giuseppe
Copy link
Member

always use the direct mapping when writing the user namespace for an idmapped mount. This is a breaking change but it is a fairly recent feature and it is only Podman using it.

Copy link
Contributor

@rata rata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

giuseppe added a commit to giuseppe/libpod that referenced this pull request Feb 20, 2023
always use the direct mapping when writing the mappings for an
idmapped mount.  crun was previously using the reverse mapping, which
is not correct and it is being addressed here:

containers/crun#1147

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
always use the direct mapping when writing the user namespace for an
idmapped mount.  This is a breaking change but it is a fairly recent
feature and it is only Podman using it.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Member Author

the failure in podman uidmapping and gidmapping with an idmapped volume is expected since this is a breaking change. The test is disabled with containers/podman#17577

I'll reenable it once a new crun that contains the current patch gets into a new Fedora build

@giuseppe
Copy link
Member Author

@rhatdan PTAL (and containers/podman#17577)

@giuseppe giuseppe marked this pull request as ready for review February 21, 2023 10:37
@rhatdan
Copy link
Member

rhatdan commented Feb 21, 2023

LGTM

@rhatdan rhatdan merged commit e94022c into containers:main Feb 21, 2023
giuseppe added a commit to giuseppe/libpod that referenced this pull request Mar 25, 2023
always use the direct mapping when writing the mappings for an
idmapped mount.  crun was previously using the reverse mapping, which
is not correct and it is being addressed here:

containers/crun#1147

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit af8d649)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants