Bug 581529 - SELinux is preventing /usr/bin/python "write" access on /etc/hosts.deny.purge.bak.
Summary: SELinux is preventing /usr/bin/python "write" access on /etc/hosts.deny....
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:88dd45e2181...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-12 14:31 UTC by Carl G.
Modified: 2010-05-03 16:09 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Carl G. 2010-04-12 14:31:35 UTC
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;

Comment 1 Miroslav Grepl 2010-04-12 16:02:44 UTC
I will backport denyhosts policy from F13.

Comment 2 Miroslav Grepl 2010-04-13 12:48:28 UTC
Fixed in selinux-policy-3.6.32-111.fc12

Comment 3 Fedora Update System 2010-04-23 12:44:31 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:08 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:08 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.