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

overlay: chown only newly created directories #1069

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

giuseppe
Copy link
Member

use idtools.MkdirAllAndChownNew() instead of idtools.MkdirAllAs() to
create new directories, so it doesn't change ownership of existing
parent directories.

Closes: #1068

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

use idtools.MkdirAllAndChownNew() instead of idtools.MkdirAllAs() to
create new directories, so it doesn't change ownership of existing
parent directories.

Closes: containers#1068

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

rhatdan commented Nov 19, 2021

@flouthoc
Copy link
Collaborator

LGTM

@rhatdan rhatdan merged commit 47f85bd into containers:main Nov 19, 2021
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.

podman run --userns=keep-id causes ~/.local/share/containers/storage/overlay to be owned by uid 10000
3 participants