Fedora Account System
Red Hat Associate
Red Hat Customer
In order to allow qemu to authenticate SPICE connections with SASL GSSAPI when SSSD is in use, one needs to make sure svirt_t processes are allowed to read files in /var/lib/sss/pubconf/krb5.conf.d/. Right now only ability to read the directory in question is allowed: [pid 4018] open("/var/lib/sss/pubconf/krb5.include.d/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 32 [pid 4018] open("/var/lib/sss/pubconf/krb5.include.d//domain_realm_example_com", O_RDONLY) = -1 EACCES (Permission denied) # sesearch -A -s svirt_t|grep sssd allow svirt_t sssd_public_t:dir read; We need also rules to allow reading files: # echo "(allow svirt_t sssd_public_t (file (read getattr open)))" > my-local-rule.cil && semodule -i my-local-rule.cil After adding this temporary rule svirt_t process can complete initializing libkrb5 and offer SASL GSSAPI to its clients.
Alexander, I added changes into Rawhide, F26 and F25
Thank you, Lukas.
selinux-policy-3.13.1-259.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b51a015cb
selinux-policy-3.13.1-259.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7b51a015cb
selinux-policy-3.13.1-259.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.