Bug 1039751

Summary: SELinux is preventing /usr/bin/python2.7 from 'mac_admin' accesses on the capability2 .
Product: [Fedora] Fedora Reporter: Eric Blake <eblake>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4f0218cf66c2abdfcdca3f13aa13ef08d4c5272e2224d248093c9ebf0246f982
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-10 07:55:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Blake 2013-12-09 22:08:51 UTC
Description of problem:
doing a 'yum install' of a large number of packages
SELinux is preventing /usr/bin/python2.7 from 'mac_admin' accesses on the capability2 .

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

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

Additional Information:
Source Context                unconfined_u:system_r:rpm_t:s0-s0:c0.c1023
Target Context                unconfined_u:system_r:rpm_t:s0-s0:c0.c1023
Target Objects                 [ capability2 ]
Source                        yum
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-9.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.10-300.fc20.x86_64 #1 SMP Fri
                              Nov 29 19:16:48 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-09 15:07:18 MST
Last Seen                     2013-12-09 15:07:18 MST
Local ID                      905f2c6c-d98b-4937-9db3-222922834e3d

Raw Audit Messages
type=AVC msg=audit(1386626838.102:627): avc:  denied  { mac_admin } for  pid=9542 comm="yum" capability=33  scontext=unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 tclass=capability2


type=SYSCALL msg=audit(1386626838.102:627): arch=x86_64 syscall=lsetxattr success=no exit=EINVAL a0=306a870 a1=3859818d3e a2=2cf4220 a3=24 items=0 ppid=2965 pid=9542 auid=14986 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=1 tty=pts0 comm=yum exe=/usr/bin/python2.7 subj=unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 key=(null)

Hash: yum,rpm_t,rpm_t,capability2,mac_admin

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.10-300.fc20.x86_64
type:           libreport

Potential duplicate: bug 690534

Comment 1 Miroslav Grepl 2013-12-10 07:55:07 UTC

*** This bug has been marked as a duplicate of bug 1039737 ***