Résumé: SELinux is preventing /usr/bin/python "write" access on /etc/hosts.deny.purge.bak. Description détaillée: SELinux denied access requested by denyhosts.py. It is not expected that this access is required by denyhosts.py 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 system_u:system_r:initrc_t:s0 Contexte cible staff_u:object_r:etc_t:s0 Objets du contexte /etc/hosts.deny.purge.bak [ file ] source denyhosts.py Chemin de la source /usr/bin/python Port <Inconnu> Hôte (removed) Paquetages RPM source python-2.6.2-4.fc12 Paquetages RPM cible Politique RPM selinux-policy-3.6.32-108.fc12 Selinux activé True Type de politique targeted Mode strict Enforcing 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 1 Première alerte lun 12 avr 2010 10:29:37 EDT Dernière alerte lun 12 avr 2010 10:29:37 EDT ID local 2ee07496-7408-47b1-b133-29321937c1cd Numéros des lignes Messages d'audit bruts node=(removed) type=AVC msg=audit(1271082577.780:31599): avc: denied { write } for pid=1872 comm="denyhosts.py" name="hosts.deny.purge.bak" dev=dm-2 ino=180 scontext=system_u:system_r:initrc_t:s0 tcontext=staff_u:object_r:etc_t:s0 tclass=file node=(removed) type=SYSCALL msg=audit(1271082577.780:31599): arch=c000003e syscall=2 success=no exit=-13 a0=25dbc60 a1=241 a2=1b6 a3=0 items=0 ppid=1 pid=1872 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="denyhosts.py" exe="/usr/bin/python" subj=system_u:system_r:initrc_t:s0 key=(null) Hash String generated from catchall,denyhosts.py,initrc_t,etc_t,file,write audit2allow suggests: #============= initrc_t ============== allow initrc_t etc_t:file write;
I will backport denyhosts policy from F13.
Fixed in selinux-policy-3.6.32-111.fc12
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
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
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.