Bug 871097

Summary: SELinux is preventing haveged from 'read' accesses on the file meminfo.
Product: [Fedora] Fedora Reporter: Mircea Sava <msava>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:e92d53b0f15834e4b0021856363768e89068c68de991f17c971829782542ca27
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:04:34 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:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Mircea Sava 2012-10-29 15:42:16 UTC
Additional info:
libreport version: 2.0.16
kernel:         3.6.2-4.fc17.i686

description:
:SELinux is preventing haveged from 'read' accesses on the file meminfo.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that haveged should be allowed read access on the meminfo 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:
:# grep haveged /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:entropyd_t:s0
:Target Context                system_u:object_r:proc_t:s0
:Target Objects                meminfo [ file ]
:Source                        haveged
:Source Path                   haveged
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-4.fc17.i686 #1 SMP Wed Oct
:                              17 03:22:23 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2012-10-29 12:12:43 EET
:Last Seen                     2012-10-29 12:12:43 EET
:Local ID                      ba08d6e2-ace2-48e3-96cb-72a66790bcbd
:
:Raw Audit Messages
:type=AVC msg=audit(1351505563.154:20): avc:  denied  { read } for  pid=646 comm="haveged" name="meminfo" dev="proc" ino=4026532026 scontext=system_u:system_r:entropyd_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file
:
:
:Hash: haveged,entropyd_t,proc_t,file,read
:
:audit2allow
:
:#============= entropyd_t ==============
:allow entropyd_t proc_t:file read;
:
:audit2allow -R
:
:#============= entropyd_t ==============
:allow entropyd_t proc_t:file read;
:

Comment 1 Mircea Sava 2012-10-29 15:42:20 UTC
Created attachment 635069 [details]
File: type

Comment 2 Mircea Sava 2012-10-29 15:42:22 UTC
Created attachment 635070 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-29 16:52:24 UTC
Added.

commit c80b9fda0fff6404852daead8d8c72d3b4157076
Author: Miroslav Grepl <mgrepl>
Date:   Mon Oct 29 17:52:05 2012 +0100

    Allow entropyd_t to read proc_t (meminfo)

Comment 4 Fedora Update System 2012-11-06 08:20:38 UTC
selinux-policy-3.10.0-159.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-159.fc17

Comment 5 Fedora Update System 2012-11-08 02:02:47 UTC
Package selinux-policy-3.10.0-159.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-159.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17782/selinux-policy-3.10.0-159.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 15:04:41 UTC
selinux-policy-3.10.0-159.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.