Bug 998608

Summary: SELinux is preventing /usr/bin/python2.7 from 'remove_name' accesses on the directory tmpo_cq7R.
Product: [Fedora] Fedora Reporter: Mark <mark.a.sloan>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a6f1266937726049b66296128d5c6b0f96014dc0a8719fad6e356e216fa9d463
Fixed In Version: selinux-policy-3.12.1-73.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-24 22:28:36 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 Mark 2013-08-19 15:19:41 UTC
Description of problem:
install RDO/packstack. 
SELinux is preventing /usr/bin/python2.7 from 'remove_name' accesses on the directory tmpo_cq7R.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow python2.7 to have remove_name access on the tmpo_cq7R directory
Then you need to change the label on tmpo_cq7R
Do
# semanage fcontext -a -t FILE_TYPE 'tmpo_cq7R'
where FILE_TYPE is one of the following: swift_data_t, swift_var_run_t, var_run_t. 
Then execute: 
restorecon -v 'tmpo_cq7R'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that python2.7 should be allowed remove_name access on the tmpo_cq7R 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-object-re /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:var_t:s0
Target Objects                tmpo_cq7R [ dir ]
Source                        swift-object-re
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-3.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-69.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.10.6-200.fc19.x86_64 #1 SMP Mon
                              Aug 12 14:49:42 UTC 2013 x86_64 x86_64
Alert Count                   411
First Seen                    2013-08-15 15:01:40 MDT
Last Seen                     2013-08-19 09:19:09 MDT
Local ID                      6c36030e-a050-4b97-b9e7-97d226af382b

Raw Audit Messages
type=AVC msg=audit(1376925549.821:705): avc:  denied  { remove_name } for  pid=798 comm="swift-object-re" name="tmpo_cq7R" dev="dm-1" ino=1325532 scontext=system_u:system_r:swift_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=dir


type=AVC msg=audit(1376925549.821:705): avc:  denied  { rename } for  pid=798 comm="swift-object-re" name="tmpo_cq7R" dev="dm-1" ino=1325532 scontext=system_u:system_r:swift_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file


type=AVC msg=audit(1376925549.821:705): avc:  denied  { unlink } for  pid=798 comm="swift-object-re" name="object.recon" dev="dm-1" ino=1325527 scontext=system_u:system_r:swift_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file


type=SYSCALL msg=audit(1376925549.821:705): arch=x86_64 syscall=rename success=yes exit=0 a0=f66240 a1=f739c0 a2=3048bbbf88 a3=6361632f7261762f items=0 ppid=1 pid=798 auid=4294967295 uid=1001 gid=1002 euid=1001 suid=1001 fsuid=1001 egid=1002 sgid=1002 fsgid=1002 ses=4294967295 tty=(none) comm=swift-object-re exe=/usr/bin/python2.7 subj=system_u:system_r:swift_t:s0 key=(null)

Hash: swift-object-re,swift_t,var_t,dir,remove_name

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.10.6-200.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-08-20 09:02:44 UTC
*** Bug 998610 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2013-08-23 15:12:36 UTC
selinux-policy-3.12.1-73.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-73.fc19

Comment 4 Fedora Update System 2013-08-23 23:59:12 UTC
Package selinux-policy-3.12.1-73.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-73.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-15219/selinux-policy-3.12.1-73.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-08-24 22:28:36 UTC
selinux-policy-3.12.1-73.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.