Bug 767455 - SELinux is preventing /usr/sbin/mcelog from 'getattr' accesses on the file /run/mcelog.pid.
Summary: SELinux is preventing /usr/sbin/mcelog from 'getattr' accesses on the file /r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d355cd5fa03...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-14 05:41 UTC by vikram goyal
Modified: 2012-01-18 10:28 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.9.16-50.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-17 20:26:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description vikram goyal 2011-12-14 05:41:37 UTC
SELinux is preventing /usr/sbin/mcelog from 'getattr' accesses on the file /run/mcelog.pid.

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

If you believe that mcelog should be allowed getattr 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                /run/mcelog.pid [ file ]
Source                        mcelog
Source Path                   /usr/sbin/mcelog
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mcelog-1.0-0.3.6e4e2a00.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-48.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.41.4-1.fc15.x86_64 #1 SMP Tue Nov 29 11:53:48
                              UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 14 Dec 2011 11:09:58 AM IST
Last Seen                     Wed 14 Dec 2011 11:09:58 AM IST
Local ID                      c355f41a-f704-4003-8e68-16e786ce5859

Raw Audit Messages
type=AVC msg=audit(1323841198.529:397): avc:  denied  { getattr } for  pid=27283 comm="mcelog" path="/run/mcelog.pid" dev=tmpfs ino=506359 scontext=system_u:system_r:mcelog_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1323841198.529:397): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7fff5d2341b0 a2=7fff5d2341b0 a3=7fff5d234760 items=0 ppid=1 pid=27283 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=mcelog exe=/usr/sbin/mcelog subj=system_u:system_r:mcelog_t:s0 key=(null)

Hash: mcelog,mcelog_t,var_run_t,file,getattr

audit2allow

#============= mcelog_t ==============
allow mcelog_t var_run_t:file getattr;

audit2allow -R

#============= mcelog_t ==============
allow mcelog_t var_run_t:file getattr;

Comment 1 Miroslav Grepl 2011-12-14 11:46:54 UTC
It has been fixed in the selinux-policy-3.9.16-49.fc15

http://koji.fedoraproject.org/koji/buildinfo?buildID=276782

Comment 2 Fedora Update System 2011-12-14 13:40:59 UTC
selinux-policy-3.9.16-50.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-50.fc15

Comment 3 Fedora Update System 2011-12-14 23:30:43 UTC
Package selinux-policy-3.9.16-50.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.9.16-50.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17089/selinux-policy-3.9.16-50.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-01-17 20:26:29 UTC
selinux-policy-3.9.16-50.fc15 has been pushed to the Fedora 15 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.