Bug 1039751 - SELinux is preventing /usr/bin/python2.7 from 'mac_admin' accesses on the capability2 .
Summary: SELinux is preventing /usr/bin/python2.7 from 'mac_admin' accesses on the cap...
Keywords:
Status: CLOSED DUPLICATE of bug 1039737
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:4f0218cf66c2abdfcdca3f13aa1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-09 22:08 UTC by Eric Blake
Modified: 2013-12-10 07:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-10 07:55:07 UTC
Type: ---


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.