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 1178002 (hawkey.log) - SELinux is preventing logrotate from 'setattr' accesses on the file /var/cache/dnf/x86_64/21/hawkey.log.
Summary: SELinux is preventing logrotate from 'setattr' accesses on the file /var/cach...
Keywords:
Status: CLOSED DUPLICATE of bug 1175434
Alias: hawkey.log
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:65657a5b8339b138c8636dc7a3e...
: 1174825 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-01 10:20 UTC by Fabio Valentini
Modified: 2015-04-20 18:51 UTC (History)
27 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-20 18:51:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fabio Valentini 2015-01-01 10:20:15 UTC
Description of problem:
SELinux is preventing logrotate from 'setattr' accesses on the file /var/cache/dnf/x86_64/21/hawkey.log.

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

If you believe that logrotate should be allowed setattr access on the hawkey.log 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 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                unconfined_u:object_r:rpm_var_cache_t:s0
Target Objects                /var/cache/dnf/x86_64/21/hawkey.log [ file ]
Source                        logrotate
Source Path                   logrotate
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-103.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.17.7-300.fc21.x86_64 #1 SMP Wed
                              Dec 17 03:08:44 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2015-01-01 11:18:01 CET
Last Seen                     2015-01-01 11:18:01 CET
Local ID                      2b93b6b3-a9c9-40ad-a2b9-bb0e18f676ab

Raw Audit Messages
type=AVC msg=audit(1420107481.470:662): avc:  denied  { setattr } for  pid=8149 comm="logrotate" name="hawkey.log" dev="sda3" ino=1514688 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:rpm_var_cache_t:s0 tclass=file permissive=1


Hash: logrotate,logrotate_t,rpm_var_cache_t,file,setattr

Version-Release number of selected component:
selinux-policy-3.13.1-103.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.7-300.fc21.x86_64
type:           libreport

Comment 1 vikram goyal 2015-01-02 04:01:53 UTC
Description of problem:

Some default selinux settings issue

Version-Release number of selected component:
selinux-policy-3.13.1-103.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.7-300.fc21.x86_64+debug
type:           libreport

Comment 2 Daniel Walsh 2015-01-02 13:05:19 UTC
dnf should put its log files under /var/log...

Comment 3 Daniel Walsh 2015-01-02 13:06:48 UTC
*** Bug 1174825 has been marked as a duplicate of this bug. ***

Comment 4 ioqzc 2015-01-12 19:50:45 UTC
Description of problem:
:(

Version-Release number of selected component:
selinux-policy-3.13.1-103.fc21.noarch

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.17.7-300.fc21.x86_64
type:           libreport

Comment 5 Honza Silhan 2015-04-20 18:51:58 UTC

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


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