Bug 1072008
| Summary: | SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory . | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chester Knapp <cknapp> | ||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, wbirkhea | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | abrt_hash:7b5c14daed485b2704b8c73604d54742cdfcdc087b86ea354ec43d36999d84f8 | ||||||
| Fixed In Version: | selinux-policy-3.12.1-135.fc20 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-03-21 09:26:01 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: | |||||||
| Attachments: |
|
||||||
Created attachment 870037 [details]
File: packstack-answers-20140303-103051.txt
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
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 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). 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. |
Description of problem: Occured during RDO installation. Packstack answer file attached. SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the directory . ***** Plugin catchall (100. confidence) suggests ************************** If you believe that python2.7 should be allowed read access on the 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 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:tmp_t:s0 Target Objects [ dir ] 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 78038dd0-5379-441f-a8c1-fe0b729941c7 Raw Audit Messages type=AVC msg=audit(1393864280.168:12077): avc: denied { read } for pid=29073 comm="swift-object-se" name="tmp" dev="dm-0" ino=21889081 scontext=system_u:system_r:swift_t:s0 tcontext=system_u:object_r:tmp_t:s0 tclass=dir type=SYSCALL msg=audit(1393864280.168:12077): arch=x86_64 syscall=open success=no exit=EACCES a0=3de905a12b a1=0 a2=1b6 a3=1 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,tmp_t,dir,read Additional info: reporter: libreport-2.1.12 hashmarkername: setroubleshoot kernel: 3.13.5-200.fc20.x86_64 type: libreport