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

Only switch to userns-root if we actually need it for chroot() #704

Merged
merged 1 commit into from May 14, 2019

Conversation

pmatilai
Copy link
Member

Since we don't have proper user/group info inside userns-root, avoid
going there unless we have to. Fixes a regression introduced in
commit b4c832c where non-root,
non-chroot verification shows user and group differing on all files.

@ffesti
Copy link
Contributor

ffesti commented May 14, 2019

"userns-root" in the patch description looks like a typo.

arg obviously ns stands for name space...

@pmatilai
Copy link
Member Author

Hmm, it's not a typo, it refers both to the chroot and root user inside the user namespace.

@pmatilai
Copy link
Member Author

I can certainly clarify it though.

Since we don't have proper user/group info inside the user namespace we
set up, avoid going there unless we have to. Fixes a regression introduced
in commit b4c832c where non-root,
non-chroot verification shows user and group differing on all files.
@pmatilai
Copy link
Member Author

Commit message updated

@ffesti ffesti merged commit 4dfe5e7 into rpm-software-management:master May 14, 2019
@pmatilai pmatilai deleted the userns-rootdir-pr branch May 14, 2019 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants