Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1782446

Summary: SELinux is preventing /usr/lib/systemd/systemd from read access on the directory fprint.
Product: Red Hat Enterprise Linux 8 Reporter: Peter Kopec <pekopec>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 8.2CC: lvrabec, mmalik, plautrba, ssekidde, tpelka
Target Milestone: rc   
Target Release: 8.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 09:53:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Kopec 2019-12-11 16:32:27 UTC
*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that systemd should be allowed read access on the fprint directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c '(fprintd)' --raw | audit2allow -M my-fprintd
# semodule -X 300 -i my-fprintd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:fprintd_var_lib_t:s0
Target Objects                fprint [ dir ]
Source                        (fprintd)
Source Path                   /usr/lib/systemd/systemd
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           systemd-239-21.el8.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-29.el8.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 4.18.0-161.el8.x86_64
                              #1 SMP Fri Dec 6 14:25:24 UTC 2019 x86_64 x86_64
Alert Count                   4
First Seen                    2019-12-11 17:12:02 CET
Last Seen                     2019-12-11 17:28:19 CET
Local ID                      8c8f50f8-db27-414c-b8c2-cbf24fbf2fb2

Raw Audit Messages
type=AVC msg=audit(1576081699.541:77): avc:  denied  { read } for  pid=2150 comm="(fprintd)" name="fprint" dev="dm-0" ino=1203214 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:fprintd_var_lib_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1576081699.541:77): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffff9c a1=5580e07719a0 a2=f0000 a3=0 items=0 ppid=1 pid=2150 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=(fprintd) exe=/usr/lib/systemd/systemd subj=system_u:system_r:init_t:s0 key=(null)

Hash: (fprintd),init_t,fprintd_var_lib_t,dir,read

Comment 1 Milos Malik 2019-12-12 08:57:24 UTC
I believe this bug is a duplicate of BZ#1781696.

Comment 2 Peter Kopec 2019-12-12 09:20:28 UTC
Looks like you are right ,  Jiri Koten  "Also it seems to freeze my lock screen as a result of that. The fprintd daemon is responsible for fingerprint reader which I have on my laptop." mentioned same issue as i had. i also had problem with all logins , for example after "su" i had to wait for 20 ish seconds to be asked for passowrd. After disabling selinux everything worked fine.

Comment 3 Tomas Pelka 2019-12-12 09:53:15 UTC

*** This bug has been marked as a duplicate of bug 1781696 ***