Bug 717644

Summary: SELinux is preventing /usr/sbin/mcelog from 'read' accesses on the directory /var/spool/cron.
Product: [Fedora] Fedora Reporter: Jay Turner <jturner>
Component: cronieAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: davematel, dominick.grift, dwalsh, mgrepl, mmaslano, pertusus, srevivo, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3d1c362ab1f7d26c4b9e5c791274e832a258d8da9c4137289dc01a29bd4d75b2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-29 13:43:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jay Turner 2011-06-29 13:17:57 UTC
SELinux is preventing /usr/sbin/mcelog from 'read' accesses on the directory /var/spool/cron.

*****  Plugin leaks (50.5 confidence) suggests  ******************************

If you want to ignore mcelog trying to read access the cron directory, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/sbin/mcelog /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (50.5 confidence) suggests  ***************************

If you believe that mcelog should be allowed read access on the cron directory 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-s0:c0.c1023
Target Context                system_u:object_r:cron_spool_t:s0
Target Objects                /var/spool/cron [ dir ]
Source                        mcelog
Source Path                   /usr/sbin/mcelog
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mcelog-1.0-0.1.pre3.fc14
Target RPM Packages           cronie-1.4.8-1.fc14
Policy RPM                    selinux-policy-3.9.7-42.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.13-92.fc14.x86_64 #1 SMP Sat May 21
                              17:26:25 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Wed 29 Jun 2011 07:01:01 AM EDT
Last Seen                     Wed 29 Jun 2011 09:01:01 AM EDT
Local ID                      092aae97-31a9-4d16-b236-833add596e60

Raw Audit Messages
type=AVC msg=audit(1309352461.843:33406): avc:  denied  { read } for  pid=4423 comm="mcelog" path="/var/spool/cron" dev=dm-1 ino=1574516 scontext=system_u:system_r:mcelog_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cron_spool_t:s0 tclass=dir


type=AVC msg=audit(1309352461.843:33406): avc:  denied  { read } for  pid=4423 comm="mcelog" path="/etc/cron.d" dev=dm-1 ino=925110 scontext=system_u:system_r:mcelog_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_cron_spool_t:s0 tclass=dir


type=AVC msg=audit(1309352461.843:33406): avc:  denied  { read } for  pid=4423 comm="mcelog" path="/etc/crontab" dev=dm-1 ino=926119 scontext=system_u:system_r:mcelog_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_cron_spool_t:s0 tclass=file


type=SYSCALL msg=audit(1309352461.843:33406): arch=x86_64 syscall=execve success=yes exit=0 a0=17dbf00 a1=17dacb0 a2=17da8e0 a3=0 items=0 ppid=4421 pid=4423 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm=mcelog exe=/usr/sbin/mcelog subj=system_u:system_r:mcelog_t:s0-s0:c0.c1023 key=(null)

Hash: mcelog,mcelog_t,cron_spool_t,dir,read

audit2allow

#============= mcelog_t ==============
allow mcelog_t cron_spool_t:dir read;
allow mcelog_t system_cron_spool_t:dir read;
allow mcelog_t system_cron_spool_t:file read;

audit2allow -R

#============= mcelog_t ==============
allow mcelog_t cron_spool_t:dir read;
allow mcelog_t system_cron_spool_t:dir read;
allow mcelog_t system_cron_spool_t:file read;

Comment 1 Tomas Mraz 2011-06-29 13:43:05 UTC

*** This bug has been marked as a duplicate of bug 717617 ***