Bug 652891 - 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: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1ff8c0efc3b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-13 10:29 UTC by Alexander Hunt
Modified: 2010-11-21 22:00 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-12.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-21 22:00:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexander Hunt 2010-11-13 10:29:09 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 python. It is not expected that this access
is required by python 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                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:object_r:gconf_home_t:s0
Target Objects                /root/.local [ dir ]
Source                        python
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7-8.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-48.fc14.x86_64 #1 SMP
                              Fri Oct 22 15:36:08 UTC 2010 x86_64 x86_64
Alert Count                   5
First Seen                    Thu 21 Oct 2010 03:11:58 PM MDT
Last Seen                     Sat 13 Nov 2010 03:25:04 AM MST
Local ID                      efdef6e3-ee6a-4337-9931-8331ad2c5ca0
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289643904.633:38): avc:  denied  { search } for  pid=1828 comm="python" name=".local" dev=dm-4 ino=135133 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1289643904.633:38): arch=c000003e syscall=4 success=no exit=-2 a0=1b50f20 a1=7fff0dd1d470 a2=7fff0dd1d470 a3=326e6f687479702f items=0 ppid=1752 pid=1828 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="python" exe="/usr/bin/python" subj=system_u:system_r:NetworkManager_t:s0 key=(null)



Hash String generated from  catchall,python,NetworkManager_t,gconf_home_t,dir,search
audit2allow suggests:

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

Comment 1 Daniel Walsh 2010-11-15 15:03:33 UTC
Miroslav can you add this as a dontaudit.  We don't want NetworkManager reading content in a homedir.

Comment 2 Miroslav Grepl 2010-11-15 15:15:02 UTC
Ah, yes. Added to selinux-policy-3.9.7-13.fc14

Comment 3 Fedora Update System 2010-11-19 13:21:50 UTC
selinux-policy-3.9.7-12.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 4 Fedora Update System 2010-11-19 22:40:09 UTC
selinux-policy-3.9.7-12.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.7-12.fc14

Comment 5 Fedora Update System 2010-11-21 21:58:26 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 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.