Bug 1072006 - SELinux is preventing /usr/bin/python2.7 from 'getattr' accesses on the file .
Summary: SELinux is preventing /usr/bin/python2.7 from 'getattr' accesses on the file .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fd7a1d35ba126593b65fed43aa9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-03 16:40 UTC by Chester Knapp
Modified: 2014-07-21 04:26 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-135.fc20
Clone Of:
Environment:
Last Closed: 2014-03-21 09:25:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: packstack-answers-20140303-103051.txt (14.51 KB, text/plain)
2014-03-03 16:40 UTC, Chester Knapp
no flags Details

Description Chester Knapp 2014-03-03 16:40:31 UTC
Description of problem:
Occured during RDO installation. Answer file attached. 
SELinux is preventing /usr/bin/python2.7 from 'getattr' accesses on the file .

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

If you believe that python2.7 should be allowed getattr access on the  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 swift-container /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:swift_t:s0
Target Context                system_u:object_r:rpm_exec_t:s0
Target Objects                 [ file ]
Source                        swift-container
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-11.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-122.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.5-200.fc20.x86_64 #1 SMP Mon
                              Feb 24 16:51:35 UTC 2014 x86_64 x86_64
Alert Count                   3
First Seen                    2014-03-03 11:31:18 EST
Last Seen                     2014-03-03 11:31:20 EST
Local ID                      c0e1a0a1-f2c0-4753-a465-31424c9ec933

Raw Audit Messages
type=AVC msg=audit(1393864280.157:12074): avc:  denied  { getattr } for  pid=29073 comm="swift-object-se" path="/usr/bin/rpm" dev="dm-0" ino=2228792 scontext=system_u:system_r:swift_t:s0 tcontext=system_u:object_r:rpm_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1393864280.157:12074): arch=x86_64 syscall=stat success=no exit=EACCES a0=28c16b0 a1=7fffdbe99800 a2=7fffdbe99800 a3=3dd67c55d0 items=0 ppid=1 pid=29073 auid=4294967295 uid=1001 gid=1001 euid=1001 suid=1001 fsuid=1001 egid=1001 sgid=1001 fsgid=1001 ses=4294967295 tty=(none) comm=swift-object-se exe=/usr/bin/python2.7 subj=system_u:system_r:swift_t:s0 key=(null)

Hash: swift-container,swift_t,rpm_exec_t,file,getattr

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.13.5-200.fc20.x86_64
type:           libreport

Comment 1 Chester Knapp 2014-03-03 16:40:35 UTC
Created attachment 870036 [details]
File: packstack-answers-20140303-103051.txt

Comment 2 Miroslav Grepl 2014-03-05 07:58:26 UTC
commit 1e9ece815a4863368930dc2b6f667d7c48ac3eb3
Author: Miroslav Grepl <mgrepl>
Date:   Wed Mar 5 08:58:09 2014 +0100

    Allow swift to exec rpm in swift_t and allow to create tmp files/dirs

Comment 3 Fedora Update System 2014-03-12 07:20:03 UTC
selinux-policy-3.12.1-135.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-135.fc20

Comment 4 Fedora Update System 2014-03-13 05:11:12 UTC
Package selinux-policy-3.12.1-135.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-135.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-3813/selinux-policy-3.12.1-135.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-03-21 09:25:55 UTC
selinux-policy-3.12.1-135.fc20 has been pushed to the Fedora 20 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.