Bug 582060 - SELinux is preventing /usr/sbin/snort-plain "read" access on dev.
Summary: SELinux is preventing /usr/sbin/snort-plain "read" access on dev.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:15244fb1e06...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-14 01:09 UTC by Carl G.
Modified: 2010-06-22 11:31 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.6.32-113.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-03 16:09:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carl G. 2010-04-14 01:09:08 UTC
Résumé:

SELinux is preventing /usr/sbin/snort-plain "read" access on dev.

Description détaillée:

[SELinux est en mode permissif. Cet accès n'a pas été refusé.]

SELinux denied access requested by snort. It is not expected that this access is
required by snort and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Autoriser l'accès:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Informations complémentaires:

Contexte source               staff_u:system_r:snort_t:s0
Contexte cible                system_u:object_r:proc_net_t:s0
Objets du contexte            dev [ file ]
source                        snort
Chemin de la source           /usr/sbin/snort-plain
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         snort-2.8.5.1-1.fc12
Paquetages RPM cible          filesystem-2.4.30-2.fc12
Politique RPM                 selinux-policy-3.6.32-108.fc12
Selinux activé               True
Type de politique             targeted
Mode strict                   Permissive
Nom du plugin                 catchall
Nom de l'hôte                (removed)
Plateforme                    Linux (removed)
                              2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr 5 19:59:38
                              UTC 2010 x86_64 x86_64
Compteur d'alertes            2
Première alerte              mar 13 avr 2010 21:06:50 EDT
Dernière alerte              mar 13 avr 2010 21:06:50 EDT
ID local                      6204fefb-b84e-4927-be45-6ff1df1f3f7b
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1271207210.317:710): avc:  denied  { read } for  pid=11392 comm="snort" name="dev" dev=proc ino=4026531931 scontext=staff_u:system_r:snort_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file

node=(removed) type=AVC msg=audit(1271207210.317:710): avc:  denied  { open } for  pid=11392 comm="snort" name="dev" dev=proc ino=4026531931 scontext=staff_u:system_r:snort_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1271207210.317:710): arch=c000003e syscall=2 success=yes exit=5 a0=317621f9d5 a1=0 a2=1b6 a3=0 items=0 ppid=11391 pid=11392 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="snort" exe="/usr/sbin/snort-plain" subj=staff_u:system_r:snort_t:s0 key=(null)



Hash String generated from  catchall,snort,snort_t,proc_net_t,file,read
audit2allow suggests:

#============= snort_t ==============
allow snort_t proc_net_t:file { read open };

Comment 1 Miroslav Grepl 2010-04-14 10:47:42 UTC
I will add 

kernel_read_network_state(snort_t)

Comment 2 Miroslav Grepl 2010-04-16 07:29:55 UTC
Fixed in selinux-policy-3.6.32-112.fc12

Comment 3 Fedora Update System 2010-04-23 12:44:50 UTC
selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 4 Fedora Update System 2010-04-27 02:23:26 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 5 Fedora Update System 2010-05-03 16:07:27 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 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.