Bug 1203146

Summary: SELinux is preventing rngd from 'execmod' accesses on the file /usr/sbin/rngd.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:68e865d3815bc8a42a2f642ebc663d8bd66d8c90339a8fd2f4755ca1b3efede7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-03 15:51:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mikhail 2015-03-18 09:16:03 UTC
Description of problem:
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.
allow this access for now by executing:
# grep rngd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.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-4.fc22.i686
Policy RPM                    selinux-policy-3.13.1-116.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.0.0-0.rc3.git0.1.fc22.i686+PAE
                              #1 SMP Mon Mar 9 13:53:28 UTC 2015 i686 i686
Alert Count                   2
First Seen                    2015-03-18 13:35:08 YEKT
Last Seen                     2015-03-18 13:59:19 YEKT
Local ID                      4954e7f1-79a3-4f72-aca1-8a662fd3a6f7

Raw Audit Messages
type=AVC msg=audit(1426669159.799:86): avc:  denied  { execmod } for  pid=597 comm="rngd" path="/usr/sbin/rngd" dev="sda1" ino=664619 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:

Additional info:
reporter:       libreport-2.4.0
hashmarkername: setroubleshoot
kernel:         4.0.0-0.rc3.git0.1.fc22.i686+PAE
type:           libreport

Potential duplicate: bug 1181308

Comment 1 Miroslav Grepl 2015-04-03 15:51:28 UTC

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