-
Notifications
You must be signed in to change notification settings - Fork 258
idtools: add support for libsubid #882
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
Conversation
Thanks @giuseppe When do you think libsubuid will show up? |
I am not sure about that, AFAIK there wasn't even a release upstream yet. @alexey-tikhonov do you know when a new shadow-utils can land in Fedora? |
It is actually in Fedora 35 already: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8483b52301 (but most probably will need an update when shadow-maint/shadow#325 is fixed) |
8a5d739
to
3407da6
Compare
thanks! Sorry I've missed it before. I've tested the current patch with the package available for F35 and it works fine |
What do we need to do to get this in and able to work on distros without libsubid? |
Probably using a build tag would be the easiest and we can use it in Rawhide |
Btw, there were several changes in libsubid (including shadow-maint/shadow@3d670ba) |
3407da6
to
3db9bfb
Compare
3db9bfb
to
03faffb
Compare
Can you add something like:
|
Also modify the Makefile with AUTOTAGS := |
Perhaps we should make the Tag a negative as well so it will always get compiled in unless users specify don't use it. |
69d0932
to
4518890
Compare
switched the logic |
@@ -0,0 +1,19 @@ | |||
#!/usr/bin/env bash | |||
if test $(${GO:-go} env GOOS) != "linux" ; then | |||
exit 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also do
echo no_libsubid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amended
One issue, and then LGTM |
4518890
to
e9dac0a
Compare
it is a WIP because the libsubid API were not released yet. @alexey-tikhonov is there any risk the API will change again or can we merge this PR? |
LGTM |
It would be nice to get a version of Podman into Rawhide that used libsubid, to make sure all of the plumbing works. |
@alexey-tikhonov PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a non-blocking nit, otherwise LGTM
e9dac0a
to
e0695eb
Compare
To the best of my knowledge, I don't anticipate But that's true that there is no upstream release yet and I'm not authoritative source here.
Looks good to me. |
I'm working on rebasing Fedora rawhide to the new version of shadow-utils. Once it is ready I'll let you know. |
Awesome news, Are you planning on releasing this to Fedora 34? We will need this released/backported to RHEL8.6, also. |
RHEL8.6 - sure, Fedora 34 - not planned at the moment. |
@giuseppe Now that libsubuid is in Rawhide, can we move this out of draft? |
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
when building with cgo, add support for libsubid to read the additional sub IDs for the user instead of parsing the /etc/sub?id files. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
49af4f6
to
7704329
Compare
rebased |
Rawhide update is ready https://bodhi.fedoraproject.org/updates/FEDORA-2021-3466bdabc1 |
when building with cgo, add support for libsubid to read the
additional sub IDs for the user instead of parsing the /etc/sub?id
files.
Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com