Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1173233 - SELinux is preventing /usr/sbin/logrotate from 'read' accesses on the directory /var/cache/dnf.
Summary: SELinux is preventing /usr/sbin/logrotate from 'read' accesses on the directo...
Keywords:
Status: CLOSED DUPLICATE of bug 1163438
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7b80e5f9b015f82176fa7743742...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-11 17:51 UTC by Adam Williamson
Modified: 2014-12-11 17:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-11 17:59:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2014-12-11 17:51:26 UTC
Description of problem:
Popped up during regular use of a Rawhide system, probably a background job.
SELinux is preventing /usr/sbin/logrotate from 'read' accesses on the directory /var/cache/dnf.

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

If you believe that logrotate should be allowed read access on the dnf 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:rpm_var_cache_t:s0
Target Objects                /var/cache/dnf [ dir ]
Source                        logrotate
Source Path                   /usr/sbin/logrotate
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           logrotate-3.8.8-1.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-99.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.18.0-1.fc22.x86_64 #1 SMP Tue
                              Dec 9 14:49:38 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-12-11 09:50:45 PST
Last Seen                     2014-12-11 09:50:45 PST
Local ID                      36fcc429-fcfa-4b24-a925-4c67e47dbef7

Raw Audit Messages
type=AVC msg=audit(1418320245.334:983): avc:  denied  { read } for  pid=5996 comm="logrotate" name="dnf" dev="dm-1" ino=401184 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rpm_var_cache_t:s0 tclass=dir permissive=0


type=SYSCALL msg=audit(1418320245.334:983): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffffffffffff9c a1=7fff875eb1d0 a2=90800 a3=0 items=0 ppid=5994 pid=5996 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=logrotate exe=/usr/sbin/logrotate subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null)

Hash: logrotate,logrotate_t,rpm_var_cache_t,dir,read

Version-Release number of selected component:
selinux-policy-3.13.1-99.fc22.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.0-1.fc22.x86_64
type:           libreport

Potential duplicate: bug 1163438

Comment 1 Lukas Vrabec 2014-12-11 17:59:17 UTC

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


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