https://bugzilla.redhat.com/show_bug.cgi?id=2299722
Bug ID: 2299722 Summary: SELinux preventing password authentication Product: Fedora Version: rawhide Status: NEW Component: sssd Assignee: sssd-maintainers@lists.fedoraproject.org Reporter: orion@nwra.com QA Contact: extras-qa@fedoraproject.org CC: abokovoy@redhat.com, atikhono@redhat.com, lslebodn@redhat.com, mzidek@redhat.com, pbrezina@redhat.com, sbose@redhat.com, ssorce@redhat.com, sssd-maintainers@lists.fedoraproject.org Target Milestone: --- Classification: Fedora
Description of problem:
We're seeing SELinux preventing password authentication:
In permissive mode it works and we see:
type=AVC msg=audit(1721842903.063:1198): avc: denied { read } for pid=31553 comm="krb5_child" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:cifs_helper_t:s0 tclass=key permissive=1 type=AVC msg=audit(1721842903.064:1199): avc: denied { view } for pid=31553 comm="krb5_child" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:cifs_helper_t:s0 tclass=key permissive=1 type=AVC msg=audit(1721842903.064:1200): avc: denied { write } for pid=31553 comm="krb5_child" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:cifs_helper_t:s0 tclass=key permissive=1 type=AVC msg=audit(1721842989.327:1210): avc: denied { read } for pid=31647 comm="krb5_child" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:cifs_helper_t:s0 tclass=key permissive=1 type=AVC msg=audit(1721843092.725:1229): avc: denied { read } for pid=31751 comm="krb5_child" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:cifs_helper_t:s0 tclass=key permissive=1
krb5_child.log shows:
(2024-07-24 9:54:32): [krb5_child[30625]] [set_lifetime_options] (0x0100): [RID#771] No specific renewable lifetime requested. (2024-07-24 9:54:32): [krb5_child[30625]] [set_lifetime_options] (0x0100): [RID#771] No specific lifetime requested. (2024-07-24 9:54:32): [krb5_child[30625]] [set_canonicalize_option] (0x0100): [RID#771] Canonicalization is set to [true] (2024-07-24 9:54:34): [krb5_child[30625]] [create_ccache] (0x0020): [RID#771] 1548: [13][Permission denied]
Version-Release number of selected component (if applicable): sssd-2.9.5-1.fc39.x86_64 selinux-policy-39.7-1.fc39.noarch
How reproducible: Unsure
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
Orion Poplawski orion@nwra.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|sssd |selinux-policy CC| |dwalsh@redhat.com, | |lvrabec@redhat.com, | |mmalik@redhat.com, | |omosnacek@gmail.com, | |pkoncity@redhat.com, | |vmojzis@redhat.com, | |zpytela@redhat.com Doc Type|--- |If docs needed, set a value Assignee|sssd-maintainers@lists.fedo |zpytela@redhat.com |raproject.org |
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
Orion Poplawski orion@nwra.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|rawhide |39
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
--- Comment #1 from Orion Poplawski orion@nwra.com --- See also #1802062
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
--- Comment #2 from Sumit Bose sbose@redhat.com --- Hi,
so it looks like the KEYRING type Kerberos credential cache is stored in the kernel keyring with the SELinux label of the application which created/modified/accessed(?) it the last time instead of the generic system_u:system_r:kernel_t:s0 label which would allow access to SSSD and other kerberized application trying to access the credential cache. Maybe it would help to update the title of this ticket accordingly, if you prefer I can do it?
bye, Sumit
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
--- Comment #3 from Orion Poplawski orion@nwra.com --- Please update it as you see fit.
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
Sumit Bose sbose@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|SELinux preventing password |Wrong SELinux label for |authentication |Kerberos kernel keyring | |credential cache Keywords| |Regression
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
--- Comment #4 from Sumit Bose sbose@redhat.com --- (In reply to Orion Poplawski from comment #3)
Please update it as you see fit.
Hi,
thanks, I updated the title and added the Regression keyword, because I think this is a regression.
bye, Sumit
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
--- Comment #5 from Aoife Moloney amoloney@redhat.com --- This message is a reminder that Fedora Linux 39 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '39'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 39 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
https://bugzilla.redhat.com/show_bug.cgi?id=2299722
Aoife Moloney amoloney@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |EOL Status|NEW |CLOSED Last Closed| |2024-12-02 13:12:49
--- Comment #6 from Aoife Moloney amoloney@redhat.com --- Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26.
Fedora Linux 39 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field.
If you are unable to reopen this bug, please file a new report against an active release.
Thank you for reporting this bug and we are sorry it could not be fixed.
sssd-maintainers@lists.fedoraproject.org