-
Notifications
You must be signed in to change notification settings - Fork 233
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
useradd seems not to properly respect documented --root option (subid problems when building with mock) #897
Comments
@hallyn do you agree that in a chroot environment the subid lookup should be done according to the configuration from this chroot environment? |
I wonder - looking at Line 70 in 4c0c7c5
|
Indeed, I'd vote for fixing this. Calling shadow-utils with |
It seems like |
@ikerexxe I finally got to reporting this problem, sorry for the delay. But this seems like a SELinux-related problem. |
Perfect! I will take a look in the following days. Thank you. |
yup |
https://bugzilla.redhat.com/show_bug.cgi?id=2257452
When using mock on a FreeIPA-enrolled system where FreeIPA is managing subids, the configuration of how subids should be looked up will almost certainly differ between the host and the chroot. (In my case, the chroot should NOT be using FreeIPA for subid lookup, but the strace shows that it is doing so).
Attached is an strace file that runs the command as mock would that indicates the problem.
At issue in particular is this statement in the useradd manpage:
What appears to be happening is that the host config is "leaking" into the chroot, at least when the subid lookup is done.
The text was updated successfully, but these errors were encountered: