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
commit 2387b1270b108608d880e5efe4ff16ace210378e fixes this in git.
backported.
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
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).
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
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.