Bug 1331925

Summary: AVC denied rngd
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: rng-toolsAssignee: Jeff Garzik <jgarzik>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, jaromir.capik, jgarzik, lvrabec, mgrepl, pfrields, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 14:23:12 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:

Description Chris Murphy 2016-04-30 04:37:06 UTC
Description of problem:

First seen on Fedora-Xfce-Live-i386-24_Beta-1.3.iso before launching the installer.


Version-Release number of selected component (if applicable):
rng-tools-5-7.fc24.i686
selinux-policy-3.13.1-182.fc24.noarch

How reproducible:
Always

Steps to Reproduce:
1. Boot install media
2.
3.

Actual results:

SELinux is preventing rngd from execmod access 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 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                          localhost
Source RPM Packages           
Target RPM Packages           rng-tools-5-7.fc24.i686
Policy RPM                    selinux-policy-3.13.1-182.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     localhost
Platform                      Linux localhost 4.5.2-302.fc24.i686 #1 SMP Wed Apr
                              27 14:54:19 UTC 2016 i686 i686
Alert Count                   1
First Seen                    2016-04-30 03:45:11 EDT
Last Seen                     2016-04-30 03:45:11 EDT
Local ID                      0d283107-6849-4cc4-ad6b-8436dd454e78

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


Expected results:



Additional info:

Comment 1 Lukas Vrabec 2016-05-04 09:18:50 UTC
Is "execmod" really necessary here? 

Thank you.

Comment 2 Fedora End Of Life 2017-07-25 20:38:57 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. 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 Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 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, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 3 Fedora End Of Life 2017-08-08 14:23:12 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 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 please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.