Bug 751518

Summary: SELinux is preventing /usr/sbin/logrotate from 'read' accesses on the directory /.
Product: [Fedora] Fedora Reporter: Robert McBroom <mcbroomrc>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ba350706c401c812349f0f589d2ccc0bd6e0a1dccd8c0b5b7535cb23e5ee28cc
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-07 11:09:54 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 Robert McBroom 2011-11-05 05:18:09 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/logrotate from 'read' accesses on the directory /.
time:           Sat Nov  5 01:03:01 2011

description:
:SELinux is preventing /usr/sbin/logrotate from 'read' accesses on the directory /.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that logrotate should be allowed read access on the  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 logrotate /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:logrotate_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:etc_runtime_t:s0
:Target Objects                / [ dir ]
:Source                        logrotate
:Source Path                   /usr/sbin/logrotate
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           logrotate-3.8.0-3.fc16
:Target RPM Packages           filesystem-2.4.44-1.fc16
:Policy RPM                    selinux-policy-3.10.0-43.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.1.0-0.rc10.git0.1.fc16.x86_64 #1 SMP Wed Oct 19
:                              05:02:17 UTC 2011 x86_64 x86_64
:Alert Count                   4
:First Seen                    Thu 20 Oct 2011 06:12:01 PM EDT
:Last Seen                     Mon 24 Oct 2011 03:20:01 AM EDT
:Local ID                      456fe607-a291-4ab9-9747-1e19e9b693ef
:
:Raw Audit Messages
:type=AVC msg=audit(1319440801.848:423): avc:  denied  { read } for  pid=11517 comm="logrotate" name="/" dev=sda8 ino=2 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1319440801.848:423): arch=x86_64 syscall=open success=yes exit=EINTR a0=40bec1 a1=0 a2=7ffffc4653e0 a3=ffffe000 items=0 ppid=11515 pid=11517 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=47 comm=logrotate exe=/usr/sbin/logrotate subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)
:
:Hash: logrotate,logrotate_t,etc_runtime_t,dir,read
:
:audit2allow
:
:#============= logrotate_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow logrotate_t etc_runtime_t:dir read;
:
:audit2allow -R
:
:#============= logrotate_t ==============
:#!!!! This avc is allowed in the current policy
:
:allow logrotate_t etc_runtime_t:dir read;
:

Comment 1 Miroslav Grepl 2011-11-07 11:09:54 UTC

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