-
Notifications
You must be signed in to change notification settings - Fork 788
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
Should buildah import a new version of idtools #4063
Comments
I believe buildah is using storage/pkg/idtools which has support for network based subuid and subgid? |
Does this work correctly with podman? how about podman build? |
It does work as expected with current podman build in Fedora 36. I used this as an example, with fake init.sh and inventory.yaml: https://github.com/redhat-openstack/container-validations/blob/master/Containerfile.sample. I got the same warnings from buildah on that file as the script I started with (which doesn't surprise me). |
@giuseppe PTAL |
libsubid changes its ABI in version 4. Account for the different name in the configure script. Closes: containers#4063 Signed-off-by: Giuseppe Scrivano <[email protected]>
patch here: #4069 |
Nice! Thanks! |
Description
Buildah is currently hardcoded (through its docker/idtools dependency) to parse /etc/subuid and /etc/subgid to get subid information. This is more or less guranteed to fail on systems using the the subid feature mapping in sssd, shadow-utils, and FreeIPA:
shadow-maint/shadow#154. The docs at https://pkg.go.dev/github.com/docker/docker/pkg/idtools#IdentityMapping.GIDs seem to indicate progress on accomodating this as opposed to hardcoding a subid file path.
Steps to reproduce the issue:
Describe the results you received:
For example, using subid's from FreeIPA:
And with no entry in /etc/subgid and /etc/subuid:
Describe the results you expected:
I expect buildah to honor the subid ranges defined in FreeIPA if I've configured the system to use it (in /etc/nsswitch.conf I have subid: sss).
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: