Bug 687867 - SELinux is preventing /usr/bin/python "search" access on /root/.local.
Summary: SELinux is preventing /usr/bin/python "search" access on /root/.local.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: BaseOS QE Security Team
URL:
Whiteboard: setroubleshoot_trace_hash:0d6ef4a7788...
Depends On: 630486
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-15 15:44 UTC by Red Hat Case Diagnostics
Modified: 2018-11-14 13:51 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.7.19-79.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 12:26:17 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0526 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2011-05-19 09:37:41 UTC

Description Red Hat Case Diagnostics 2011-03-15 15:44:15 UTC
+++ This bug was initially created as a clone of Bug 630486 +++


Summary:

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

Detailed Description:

SELinux denied access requested by paster. It is not expected that this access
is required by paster 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:piranha_web_t:s0
Target Context                system_u:object_r:gconf_home_t:s0
Target Objects                /root/.local [ dir ]
Source                        paster
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-51.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.34.6-47.fc13.i686.PAE #1 SMP Fri Aug 27
                              09:29:49 UTC 2010 i686 i686
Alert Count                   2
First Seen                    Wed 01 Sep 2010 06:29:33 PM EDT
Last Seen                     Sun 05 Sep 2010 03:43:38 PM EDT
Local ID                      f9b308c3-14fc-4ff1-af5e-85a5e7fe1d6e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1283715818.8:23731): avc:  denied  { search } for  pid=4138 comm="paster" name=".local" dev=dm-0 ino=162007 scontext=unconfined_u:system_r:piranha_web_t:s0 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1283715818.8:23731): arch=40000003 syscall=195 success=no exit=-2 a0=904d450 a1=bfc5969c a2=4e7ff4 a3=904d450 items=0 ppid=4137 pid=4138 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="paster" exe="/usr/bin/python" subj=unconfined_u:system_r:piranha_web_t:s0 key=(null)



Hash String generated from  catchall,paster,piranha_web_t,gconf_home_t,dir,search
audit2allow suggests:

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

--- Additional comment from mgrepl onMon Sep 06 10:57:20 EDT 2010 ---
We will add

optional_policy(`
 gnome_dontaudit_search_config(piranha_web_t)
')

--- Additional comment from dwalsh onTue Sep 07 18:53:13 EDT 2010 ---
Fixed in selinux-policy-3.9.3-1.fc14

--- Additional comment from updates onWed Sep 08 18:40:57 EDT 2010 ---
selinux-policy-3.9.3-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.3-1.fc14

--- Additional comment from updates onThu Sep 09 04:11:20 EDT 2010 ---
selinux-policy-3.9.3-1.fc14 has been pushed to the Fedora 14 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: https://admin.fedoraproject.org/updates/selinux-policy-3.9.3-1.fc14

--- Additional comment from updates onSat Sep 11 03:40:24 EDT 2010 ---
selinux-policy-3.9.3-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Miroslav Grepl 2011-03-17 10:33:26 UTC
Fixed in selinux-policy-3.7.19-79.el6

Comment 9 errata-xmlrpc 2011-05-19 12:26:17 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0526.html


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