Bug 766015 - SELinux is preventing mcelog from 'create' accesses on the file mcelog.pid.
Summary: SELinux is preventing mcelog from 'create' accesses on the file mcelog.pid.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ab6874de6842c8c8e44b66240e1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-09 21:16 UTC by Billy Croan
Modified: 2011-12-12 11:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-12 11:51:26 UTC
Type: ---


Attachments (Terms of Use)

Description Billy Croan 2011-12-09 21:16:53 UTC
libreport version: 2.0.7
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.x86_64
reason:         SELinux is preventing mcelog from 'create' accesses on the file mcelog.pid.
time:           Fri 09 Dec 2011 03:13:23 PM CST

description:
:SELinux is preventing mcelog from 'create' accesses on the file mcelog.pid.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that mcelog should be allowed create access on the mcelog.pid 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 mcelog /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:mcelog_t:s0
:Target Context                system_u:object_r:var_run_t:s0
:Target Objects                mcelog.pid [ file ]
:Source                        mcelog
:Source Path                   mcelog
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-56.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-7.fc16.x86_64 #1 SMP Tue Nov 1 21:10:48 UTC
:                              2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Tue 29 Nov 2011 01:08:10 PM CST
:Last Seen                     Tue 29 Nov 2011 01:08:10 PM CST
:Local ID                      d8b7e267-d6f5-4b23-97a2-13f072c78477
:
:Raw Audit Messages
:type=AVC msg=audit(1322593690.578:4222): avc:  denied  { create } for  pid=11546 comm="mcelog" name="mcelog.pid" scontext=system_u:system_r:mcelog_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file
:
:
:Hash: mcelog,mcelog_t,var_run_t,file,create
:
:audit2allow
:
:#============= mcelog_t ==============
:allow mcelog_t var_run_t:file create;
:
:audit2allow -R
:
:#============= mcelog_t ==============
:allow mcelog_t var_run_t:file create;
:

Comment 1 Billy Croan 2011-12-09 21:18:33 UTC
Subject really says it all.  Looks like a trivial selinux policy tweak is necessary.

Comment 2 Miroslav Grepl 2011-12-12 11:51:26 UTC
Just update your policy.

# yum update selinux-policy-targeted


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