Bug 1539213

Summary: SELinux is preventing rngd from 'execmod' accesses on the file /usr/sbin/rngd.
Product: [Fedora] Fedora Reporter: robert fairbrother <noobusinghacks>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: amielmodesto, damian.kostyra, dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:68e865d3815bc8a42a2f642ebc663d8bd66d8c90339a8fd2f4755ca1b3efede7;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-03 13:40:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description robert fairbrother 2018-01-26 23:36:13 UTC
Description of problem:
firefox is freezing up the system and BOINC-client isint working so good
 https://ask.fedoraproject.org/en/question/116217/firefox-freezes-when-performng-a-tls-handshake/
SELinux is preventing rngd from 'execmod' accesses on the file /usr/sbin/rngd.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that rngd should be allowed execmod access on the rngd file 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 'rngd' --raw | audit2allow -M my-rngd
# semodule -X 300 -i my-rngd.pp

Additional Information:
Source Context                system_u:system_r:rngd_t:s0
Target Context                system_u:object_r:rngd_exec_t:s0
Target Objects                /usr/sbin/rngd [ file ]
Source                        rngd
Source Path                   rngd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           rng-tools-5-8.fc25.i686
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.6-300.fc25.i686+PAE #1 SMP Tue
                              Nov 1 12:54:54 UTC 2016 i686 i686
Alert Count                   1
First Seen                    2017-12-24 22:45:26 EST
Last Seen                     2017-12-24 22:45:26 EST
Local ID                      5faf1aee-db73-44c1-b319-7a8250aa58ef

Raw Audit Messages
type=AVC msg=audit(1514173526.155:100): avc:  denied  { execmod } for  pid=1058 comm="rngd" path="/usr/sbin/rngd" dev="dm-1" ino=926109 scontext=system_u:system_r:rngd_t:s0 tcontext=system_u:object_r:rngd_exec_t:s0 tclass=file permissive=0


Hash: rngd,rngd_t,rngd_exec_t,file,execmod

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.14.14-300.fc27.i686+PAE
type:           libreport

Potential duplicate: bug 1362529

Comment 1 Damian Kostyra 2018-02-04 13:28:08 UTC
*** Bug 1541755 has been marked as a duplicate of this bug. ***

Comment 2 robert fairbrother 2018-06-30 14:59:51 UTC
Description of problem:
i just foundit kickin in a list of SELinux alerts

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.17.2-100.fc27.i686+PAE
type:           libreport

Comment 3 Lukas Vrabec 2018-07-03 13:40:16 UTC
Robert, 

Please update system, Fedora 25 is end of life.