-
Notifications
You must be signed in to change notification settings - Fork 246
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
Disable or configure properly uid|gid remapping. #574
Comments
This is not really fixable. The kernel will only allow unprivileged users to map one user ID and one group ID into the new user namespace; every other user ID gets mapped to the overflow uid (usually At the moment it's always the primary group ( It is possible to choose which single group from among your user's groups gets preserved, by using
or by editing |
And there is no option for run the process in the parent namespace? Just disable this isolation freature, would be a patch for doing it accepted? (Something like --share-user) |
Well, it seems that our problem is here https://github.com/containers/bubblewrap/blob/main/bubblewrap.c#L2724 --unshare-user is forced if we are not root/suid but there is no "--share-user" opt... What is the motivation for forcing this behaviour? |
If bwrap is not setuid you can only mount |
Ahh, I see. Thanks for clarification! |
Hi,
"abuilds rootbld" runs bwrap on a new generated chroot with apk and theorically the local user is part of the "abuild" group. This worked fine during months or years but now it fails because the user is not member of any group (all it's groups are nobody and even root is nobody... altougth the chroot has the same "passwd" & "group" files from the host). It seems that bwrap edits the /proc/self/uid_map for the process and it only can see the uid 1000. I tried many options related with user namespaces and always end in the same result. This is the current call:
Does someone know what should I do for disable this behaviour or add the users/groups that I need?
The text was updated successfully, but these errors were encountered: