Bug 871097 - SELinux is preventing haveged from 'read' accesses on the file meminfo.
Summary: SELinux is preventing haveged from 'read' accesses on the file meminfo.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e92d53b0f15834e4b0021856363...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-29 15:42 UTC by Mircea Sava
Modified: 2014-06-07 08:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:04:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-29 15:42 UTC, Mircea Sava
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-29 15:42 UTC, Mircea Sava
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.