bazzite: SSSD binaries missing capabilities in Bazzite 41 vs. Kinoite 41
Describe the bug
Upon upgrading Bazzite to F41, I found that my layered install of SSSD was broken. I also found that the same SSSD setup would work when added to a new install of Kinoite 41.
In a test VM of Bazzite from the 41 ISO, I was able to recreate this issue. I think I’ve narrowed it down to a few binaries used by SSSD not having capabilities assigned as they do with the same package on Kinoite.
bazzite system:
root@bazzite:/usr/libexec/sssd# getcap *
selinux_child cap_chown,cap_dac_override,cap_setgid,cap_setuid=ep
kinoite system:
root@kinotest:/usr/libexec/sssd# getcap *
krb5_child cap_chown,cap_dac_override,cap_setgid,cap_setuid=ep
ldap_child cap_chown,cap_dac_override,cap_setgid,cap_setuid=ep
selinux_child cap_chown,cap_dac_override,cap_setgid,cap_setuid=ep
sssd_pam cap_dac_read_search=p
What did you expect to happen?
I would expect the binaries krb5_child, ldap_child, and sssd_pam under /usr/libexec/sssd to have the proper capabilities so that SSSD services can function. I cannot directly modify them as they are under /usr. This was not an issue in bazzite on F39, wherein SSSD ran under the root account.
I realize that the bazzite team doesn’t touch SSSD and doesn’t ship it, but given that it works out of the box on Kinoite with the same version of the package I can’t rule out something in bazzite’s setup.
Output of rpm-ostree status
root@bazzite:/usr/libexec/sssd# rpm-ostree status State: idle Deployments: ● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable Digest: sha256:dd21242732e272339c1e5d9cee6441f95e819223e12d53cf1430a3db517d6bd6 Version: 41.20241029.1 (2024-10-29T15:39:27Z) LayeredPackages: adcli htop krb5-workstation libguestfs-tools libvirt libvirt-daemon-config-network libvirt-daemon-kvm oddjob oddjob-mkhomedir plasma-workspace-x11 pugixml qemu-kvm sssd terminator virt-install virt-manager virt-top virt-viewer
ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable Digest: sha256:dd21242732e272339c1e5d9cee6441f95e819223e12d53cf1430a3db517d6bd6 Version: 41.20241029.1 (2024-10-29T15:39:27Z) LayeredPackages: adcli htop krb5-workstation libguestfs-tools libvirt libvirt-daemon-config-network libvirt-daemon-kvm oddjob
Hardware
This is a KVM virtual machine built with the latest bazzite-stable.iso for F41.
root@bazzite:/usr/libexec/sssd# cat /sys/devices/virtual/dmi/id/product_name Standard PC (Q35 + ICH9, 2009)
Extra information or context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (2 by maintainers)
We are using a derived image from kinoite that gets rechunked in the end
Onenof the quirks of doing this is that we lose the xattrs of the original image for now. If we didn’t rechunk the image we would lose the derived xattrs instead
In any case, what changed in f41 is that sssd is now part of kinoite, which caused it to lose its xattrs. So we had to add them back in
Rechunk 1.0.1 is merged in testing so next bazzite build will have them fixed
Hi, just a reminder I am using bazzite only.
@KyleGospo snoozed on the builds so the fix is not in yet
Switch to testing for a bit if you need the functionality. Current testing build is stable.
We bumped to 1.0.1 yesterday but that was after the stable builds went out, I’ll push out new ones shortly.
@castrojo update to rechunk 1.0.1 to fix this