Bug 1199706 - SELinux is preventing /usr/sbin/rsyslogd from 'unlink' accesses on the lnk_file log.
Summary: SELinux is preventing /usr/sbin/rsyslogd from 'unlink' accesses on the lnk_fi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ca55fecbc18aa22e1ddb0abb2a5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-07 09:08 UTC by Alex. H. F.
Modified: 2015-03-31 21:46 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-105.9.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-31 21:46:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alex. H. F. 2015-03-07 09:08:14 UTC
Description of problem:
SELinux is preventing /usr/sbin/rsyslogd from 'unlink' accesses on the lnk_file log.

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

If sie denken, dass es rsyslogd standardmässig erlaubt sein sollte, unlink Zugriff auf log lnk_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# grep rsyslogd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                system_u:object_r:device_t:s0
Target Objects                log [ lnk_file ]
Source                        rsyslogd
Source Path                   /usr/sbin/rsyslogd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-105.3.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.18.7-200.fc21.x86_64 #1 SMP Wed
                              Feb 11 21:53:17 UTC 2015 x86_64 x86_64
Alert Count                   26
First Seen                    2015-02-15 20:40:29 CET
Last Seen                     2015-03-07 08:47:03 CET
Local ID                      529488ae-4a02-4120-aa99-f01f06a204f1

Raw Audit Messages
type=AVC msg=audit(1425714423.2:5): avc:  denied  { unlink } for  pid=808 comm="rsyslogd" name="log" dev="devtmpfs" ino=8916 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=lnk_file permissive=0


Hash: rsyslogd,syslogd_t,device_t,lnk_file,unlink

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

Additional info:
reporter:       libreport-2.3.0
hashmarkername: setroubleshoot
kernel:         3.18.7-200.fc21.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-03-09 12:48:25 UTC
commit d469fd3d6c5068aebdffb5a2f271628c1dcbd9f9
Author: Lukas Vrabec <lvrabec>
Date:   Thu Feb 19 17:39:49 2015 +0100

    Added logging_syslogd_pid_filetrans

commit 96368d9383c371c96ed96f1fa77e9cfff53bb794
Author: Lukas Vrabec <lvrabec>
Date:   Tue Feb 17 16:44:32 2015 +0100

    Additional fix for labeleling /dev/log correctly.

commit 95a243f6955be1ed65d4e7cd1d3604d4bcdf7b14
Author: Lukas Vrabec <lvrabec>
Date:   Mon Feb 16 16:14:38 2015 +0100

    Label /dev/log correctly.
    
    Conflicts:
        policy/modules/system/logging.if

Comment 2 Fedora Update System 2015-03-23 16:48:04 UTC
selinux-policy-3.13.1-105.9.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.9.fc21

Comment 3 Fedora Update System 2015-03-26 21:28:22 UTC
Package selinux-policy-3.13.1-105.9.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.9.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4492/selinux-policy-3.13.1-105.9.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-03-31 21:46:42 UTC
selinux-policy-3.13.1-105.9.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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