Bug 613094

Summary: SELinux is preventing /usr/bin/python "search" access on /root/.local.
Product: [Fedora] Fedora Reporter: Adam Hough <adam.hough>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:434ba61e82e2d35cfe8d9fb60d22bfedb15d536d1eea8566678baf48048c7485
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-12 16:06:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Hough 2010-07-09 16:49:31 UTC
Summary:

SELinux is preventing /usr/bin/python "search" access on /root/.local.

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
report.

Additional Information:

Source Context                unconfined_u:system_r:denyhosts_t:s0
Target Context                system_u:object_r:gconf_home_t:s0
Target Objects                /root/.local [ dir ]
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-33.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.5-124.fc13.x86_64.debug #1 SMP
                              Fri Jun 11 09:29:48 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 09 Jul 2010 11:45:49 AM CDT
Last Seen                     Fri 09 Jul 2010 11:45:49 AM CDT
Local ID                      fa4efd38-252d-4acd-8781-fc5c8c0318f9
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1278693949.17:1694): avc:  denied  { search } for  pid=7287 comm="denyhosts.py" name=".local" dev=dm-3 ino=1569814 scontext=unconfined_u:system_r:denyhosts_t:s0 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1278693949.17:1694): arch=c000003e syscall=4 success=no exit=-2 a0=f79b20 a1=7fffa0745970 a2=7fffa0745970 a3=6b6361702d657469 items=0 ppid=7286 pid=7287 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="denyhosts.py" exe="/usr/bin/python" subj=unconfined_u:system_r:denyhosts_t:s0 key=(null)



Hash String generated from  catchall,denyhosts.py,denyhosts_t,gconf_home_t,dir,search
audit2allow suggests:

#============= denyhosts_t ==============
allow denyhosts_t gconf_home_t:dir search;

Comment 1 Miroslav Grepl 2010-07-12 16:06:35 UTC

*** This bug has been marked as a duplicate of bug 613093 ***