Bug 957539

Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory /root/.local/lib/python2.7/site-packages.
Product: [Fedora] Fedora Reporter: hrafnkellbrimar
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c23012ee74831add72f209474163b6bbd7c3b1287b862b8914771e1617573f68
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-29 07:49:22 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 hrafnkellbrimar 2013-04-28 21:13:16 UTC
Description of problem:
SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory /root/.local/lib/python2.7/site-packages.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that python2.7 should be allowed read access on the site-packages directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep blueman-mechani /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:blueman_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:gconf_home_t:s0
Target Objects                /root/.local/lib/python2.7/site-packages [ dir ]
Source                        blueman-mechani
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.3-7.2.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-168.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.4-102.fc17.x86_64 #1 SMP Sun
                              Mar 24 13:09:09 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-04-28 20:50:03 GMT
Last Seen                     2013-04-28 20:50:03 GMT
Local ID                      fab674bf-452d-4d6e-8177-1e03356aeab6

Raw Audit Messages
type=AVC msg=audit(1367182203.55:83): avc:  denied  { read } for  pid=2145 comm="blueman-mechani" name="site-packages" dev="dm-3" ino=262209 scontext=system_u:system_r:blueman_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gconf_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1367182203.55:83): arch=x86_64 syscall=openat success=yes exit=EINTR a0=ffffffffffffff9c a1=177f6a0 a2=90800 a3=0 items=0 ppid=2144 pid=2145 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=blueman-mechani exe=/usr/bin/python2.7 subj=system_u:system_r:blueman_t:s0-s0:c0.c1023 key=(null)

Hash: blueman-mechani,blueman_t,gconf_home_t,dir,read

audit2allow

#============= blueman_t ==============
allow blueman_t gconf_home_t:dir read;

audit2allow -R

#============= blueman_t ==============
allow blueman_t gconf_home_t:dir read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.4-102.fc17.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-04-29 07:49:22 UTC

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