Bug 670833 - SELinux is preventing /usr/sbin/mcelog from 'execute' accesses on the file cache-error-trigger.
Summary: SELinux is preventing /usr/sbin/mcelog from 'execute' accesses on the file ca...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7d5a9b34bba...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-19 13:51 UTC by Paolo Bonzini
Modified: 2011-01-19 15:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-19 15:21:36 UTC
Type: ---


Attachments (Terms of Use)

Description Paolo Bonzini 2011-01-19 13:51:57 UTC
SELinux is preventing /usr/sbin/mcelog from 'execute' accesses on the file cache-error-trigger.

# ls -Z /etc/mcelog/triggers/cache-error-trigger
-rwxr-xr-x. root root system_u:object_r:etc_t:s0       /etc/mcelog/triggers/cache-error-trigger

suggests that  you need to change the label on files in the directory:

# semanage fcontext -a -t mcelog_exec_t '/etc/mcelog/triggers(/.*)?'
# restorecon -vR /etc/mcelog/triggers

Additional Information:
Source Context                system_u:system_r:mcelog_t:s0
Target Context                system_u:object_r:etc_t:s0
Target Objects                cache-error-trigger [ file ]
Source                        mcelog
Source Path                   /usr/sbin/mcelog
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mcelog-1.0-0.2.pre3.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.12-8.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.37-2.fc15.x86_64 #1 SMP Fri Jan 7 14:57:36 UTC
                              2011 x86_64 x86_64
Alert Count                   4
First Seen                    Wed 19 Jan 2011 01:59:38 PM CET
Last Seen                     Wed 19 Jan 2011 01:59:55 PM CET
Local ID                      39fac32d-1247-4bfc-b43a-ee57d9496982

Raw Audit Messages
type=AVC msg=audit(1295441995.948:96): avc:  denied  { execute } for  pid=3428 comm="mcelog" name="cache-error-trigger" dev=sda10 ino=247780 scontext=system_u:system_r:mcelog_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file


type=SYSCALL msg=audit(1295441995.948:96): arch=x86_64 syscall=access success=no exit=EACCES a0=12ba080 a1=5 a2=0 a3=726f7272652d6568 items=0 ppid=1 pid=3428 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)

Comment 1 Daniel Walsh 2011-01-19 15:21:36 UTC
yum -y update
restorecon -R -v /etc/mcelog

Should fix.


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