Bug 1370594

Summary: SELinux is preventing rngd from 'execmod' accesses on the file /usr/sbin/rngd.
Product: [Fedora] Fedora Reporter: Emerson Santos <em3rson>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: adriendrix, amado86, bane.krsmanovic, dominick.grift, dwalsh, enkom359, fr.r.mercier, jfrieben, lvrabec, mgrepl, plautrba, safir, sysunia40, tenk42, tommychiuyo, uliseo_95
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: 2016-08-26 18:28:22 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 Emerson Santos 2016-08-26 17:34:30 UTC
Description of problem:
SELinux is preventing rngd from 'execmod' accesses on the file /usr/sbin/rngd.

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

If você acredita que o rngd deva ser permitido acesso de execmod em rngd file  por default.
Then você deve informar que este é um erro.
Você pode gerar um módulo de política local para permitir este acesso.
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-7.fc25.i686
Policy RPM                    selinux-policy-3.13.1-208.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.0-0.rc2.git3.1.fc25.i686+PAE
                              #1 SMP Fri Aug 19 14:24:06 UTC 2016 i686 i686
Alert Count                   1
First Seen                    2016-08-26 14:15:58 BRT
Last Seen                     2016-08-26 14:15:58 BRT
Local ID                      ffb8a0e7-7bdb-45b0-a60d-83ce1ae26157

Raw Audit Messages
type=AVC msg=audit(1472231758.597:85): avc:  denied  { execmod } for  pid=676 comm="rngd" path="/usr/sbin/rngd" dev="dm-0" ino=666067 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-208.fc25.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc2.git3.1.fc25.i686+PAE
type:           libreport

Potential duplicate: bug 1362529

Comment 1 Daniel Walsh 2016-08-26 18:17:44 UTC
I would just turn on the allow_execmod boolean.  Lots of badly build libraries on your system.

Comment 2 Emerson Santos 2016-08-26 18:25:52 UTC
(In reply to Daniel Walsh from comment #1)
> I would just turn on the allow_execmod boolean.  Lots of badly build
> libraries on your system.

Okay, then I'll close. thanks

Comment 3 Nuno 2016-10-06 10:40:26 UTC
Description of problem:
Occurs during bootup

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc8.git0.1.fc25.i686+PAE
type:           libreport

Comment 4 Quentin Tayssier 2016-10-19 11:13:07 UTC
Description of problem:
Boot on Fedora 25 Xfce i386 Live Image.   (20161017)  (on vbox)
Install to Hard drive
During installation SELinux Alert
The source process: rngd
Attempted this access: execmod
On this file: /usr/sbin/rngd

As a part of the QA Boot and Install TestCase, a default installation should finish without error or Alert.

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.1-1.fc25.i686
type:           libreport

Comment 5 Andrey V. Henneberg 2017-01-25 06:19:56 UTC
Description of problem:
The error is appeared after system start,

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

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.9.5-200.fc25.i686+PAE
type:           libreport

Comment 6 fr.r.mercier 2017-03-10 11:43:44 UTC
*** Bug 1431095 has been marked as a duplicate of this bug. ***