Bug 836842 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /usr/bin/python2.7.
Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /us...
Keywords:
Status: CLOSED ERRATA
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:50469e840498df726a5fd2f47ba...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-01 22:18 UTC by Shyler Lee
Modified: 2012-07-17 17:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-17 17:28:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Shyler Lee 2012-07-01 22:18:01 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-3.fc17.x86_64
time:           Sun 01 Jul 2012 06:17:42 PM EDT

description:
:SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /usr/bin/python2.7.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should be allowed read access on the python2.7 file 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 jockey-backend /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:jockey_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:bin_t:s0
:Target Objects                /usr/bin/python2.7 [ file ]
:Source                        jockey-backend
:Source Path                   /usr/bin/python2.7
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-6.fc17.x86_64
:Target RPM Packages           python-2.7.3-6.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-134.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.4-3.fc17.x86_64 #1 SMP
:                              Tue Jun 26 20:54:56 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Sun 01 Jul 2012 05:22:51 PM EDT
:Last Seen                     Sun 01 Jul 2012 05:22:51 PM EDT
:Local ID                      6725ec50-92cc-4a02-8c81-1769534a37fb
:
:Raw Audit Messages
:type=AVC msg=audit(1341177771.667:95): avc:  denied  { read } for  pid=2053 comm="jockey-backend" path="/usr/bin/python2.7" dev="dm-2" ino=140049 scontext=system_u:system_r:jockey_t:s0-s0:c0.c1023 tcontext=system_u:object_r:bin_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1341177771.667:95): arch=x86_64 syscall=mprotect success=yes exit=0 a0=600000 a1=1000 a2=1 a3=7fff31d95bb0 items=0 ppid=2052 pid=2053 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=jockey-backend exe=/usr/bin/python2.7 subj=system_u:system_r:jockey_t:s0-s0:c0.c1023 key=(null)
:
:Hash: jockey-backend,jockey_t,bin_t,file,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-07-02 04:47:48 UTC
Fixed in selinux-policy-3.10.0-137.fc17

Comment 2 Fedora Update System 2012-07-04 06:41:46 UTC
selinux-policy-3.10.0-137.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-137.fc17

Comment 3 Fedora Update System 2012-07-05 23:36:49 UTC
Package selinux-policy-3.10.0-137.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-137.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-10279/selinux-policy-3.10.0-137.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-07-17 17:28:01 UTC
selinux-policy-3.10.0-137.fc17 has been pushed to the Fedora 17 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.