Bug 1076672 - SELinux is preventing /usr/sbin/snort-plain from 'write' accesses on the file /var/log/snort/snort.log.1394809020.
Summary: SELinux is preventing /usr/sbin/snort-plain from 'write' accesses on the file...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3a6afb751baa0a5c2395e569191...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-14 19:53 UTC by Bernard
Modified: 2014-06-27 02:23 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.26.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-27 02:23:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bernard 2014-03-14 19:53:44 UTC
Description of problem:
SELinux is preventing /usr/sbin/snort-plain from 'write' accesses on the file /var/log/snort/snort.log.1394809020.

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

If vous pensez que snort-plain devrait être autorisé à accéder write sur snort.log.1394809020 file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep snort /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:snort_t:s0
Target Context                system_u:object_r:snort_log_t:s0
Target Objects                /var/log/snort/snort.log.1394809020 [ file ]
Source                        snort
Source Path                   /usr/sbin/snort-plain
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           snort-2.9.5.5-1.1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.15.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-200.fc19.x86_64 #1 SMP Tue
                              Dec 17 22:21:14 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2014-03-14 18:57:00 RET
Last Seen                     2014-03-14 18:57:00 RET
Local ID                      721535b3-8924-4476-a71a-c7a5b16d200d

Raw Audit Messages
type=AVC msg=audit(1394809020.271:1198): avc:  denied  { write } for  pid=6700 comm="snort" path="/var/log/snort/snort.log.1394809020" dev="sda7" ino=394551 scontext=system_u:system_r:snort_t:s0 tcontext=system_u:object_r:snort_log_t:s0 tclass=file


type=SYSCALL msg=audit(1394809020.271:1198): arch=x86_64 syscall=open success=no exit=EACCES a0=33ca0a8 a1=241 a2=1b6 a3=1 items=2 ppid=1 pid=6700 auid=4294967295 uid=40000 gid=40000 euid=40000 suid=40000 fsuid=40000 egid=40000 sgid=40000 fsgid=40000 ses=4294967295 tty=(none) comm=snort exe=/usr/sbin/snort-plain subj=system_u:system_r:snort_t:s0 key=(null)

type=CWD msg=audit(1394809020.271:1198): cwd=/var/log/snort

type=PATH msg=audit(1394809020.271:1198): item=0 name=/var/log/snort/ inode=390347 dev=08:07 mode=040755 ouid=40000 ogid=40000 rdev=00:00 obj=system_u:object_r:snort_log_t:s0 nametype=PARENT

type=PATH msg=audit(1394809020.271:1198): item=1 name=/var/log/snort/snort.log.1394809020 inode=394551 dev=08:07 mode=0100600 ouid=40000 ogid=40000 rdev=00:00 obj=system_u:object_r:snort_log_t:s0 nametype=CREATE

Hash: snort,snort_t,snort_log_t,file,write

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-200.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-03-16 21:41:26 UTC
commit 2387b1270b108608d880e5efe4ff16ace210378e

fixes this in git.

Comment 2 Lukas Vrabec 2014-03-17 08:49:14 UTC
backported.

Comment 3 Fedora Update System 2014-03-21 14:36:28 UTC
selinux-policy-3.12.1-74.23.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.23.fc19

Comment 4 Fedora Update System 2014-03-22 05:09:44 UTC
Package selinux-policy-3.12.1-74.23.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-74.23.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4216/selinux-policy-3.12.1-74.23.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-05-07 16:26:22 UTC
selinux-policy-3.12.1-74.26.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.26.fc19

Comment 6 Fedora Update System 2014-06-27 02:23:27 UTC
selinux-policy-3.12.1-74.26.fc19 has been pushed to the Fedora 19 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.