Bug 957539 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory /root/.local/lib/python2.7/site-packages.
Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the director...
Keywords:
Status: CLOSED DUPLICATE of bug 614025
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c23012ee74831add72f20947416...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-28 21:13 UTC by hrafnkellbrimar
Modified: 2013-04-29 07:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-29 07:49:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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