Bug 609242 - SELinux is preventing /usr/bin/python "write" access .
Summary: SELinux is preventing /usr/bin/python "write" access .
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:15d63ce62c0...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-29 18:05 UTC by Daniel Wang
Modified: 2010-06-30 07:33 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2010-06-30 07:33:39 UTC

Attachments (Terms of Use)

Description Daniel Wang 2010-06-29 18:05:34 UTC

SELinux is preventing /usr/bin/python "write" access .

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

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.

Allowing Access:

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

Additional Information:

Source Context                system_u:system_r:denyhosts_t:s0
Target Context                system_u:system_r:denyhosts_t:s0
Target Objects                None [ unix_dgram_socket ]
Source                        denyhosts.py
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.6.4-27.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-23.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP
                              Fri Jun 11 09:42:24 UTC 2010 i686 i686
Alert Count                   19
First Seen                    Wed 23 Jun 2010 10:15:38 AM PDT
Last Seen                     Tue 29 Jun 2010 10:27:00 AM PDT
Local ID                      83fd2a78-f59f-416a-a426-c430d7cbb136
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1277832420.219:1896): avc:  denied  { write } for  pid=1771 comm="denyhosts.py" scontext=system_u:system_r:denyhosts_t:s0 tcontext=system_u:system_r:denyhosts_t:s0 tclass=unix_dgram_socket

node=(removed) type=AVC msg=audit(1277832420.219:1896): avc:  denied  { sendto } for  pid=1771 comm="denyhosts.py" path="/dev/log" scontext=system_u:system_r:denyhosts_t:s0 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1277832420.219:1896): arch=40000003 syscall=102 success=yes exit=116 a0=9 a1=bf8a5398 a2=aa3ff4 a3=14 items=0 ppid=1 pid=1771 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:denyhosts_t:s0 key=(null)

Hash String generated from  catchall,denyhosts.py,denyhosts_t,denyhosts_t,unix_dgram_socket,write
audit2allow suggests:

#============= denyhosts_t ==============
allow denyhosts_t self:unix_dgram_socket write;
allow denyhosts_t syslogd_t:unix_dgram_socket sendto;

Comment 1 Miroslav Grepl 2010-06-30 07:33:39 UTC
Please update your selinux-policy

# yum update selinux-policy-targeted

Note You need to log in before you can comment on or make changes to this bug.