Bug 743947

Summary: SELinux is preventing /usr/bin/python from 'mac_admin' accesses on the capability2 Unknown.
Product: [Fedora] Fedora Reporter: Misha Shnurapet <shnurapet>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f4691bff013b9b43a3bf1917d84eda268b4ff061fb2cd254bec08235b1ad4961
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-07 14:19:20 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 Misha Shnurapet 2011-10-06 14:48:18 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc8.git0.1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/python from 'mac_admin' accesses on the capability2 Unknown.
time:           Thu Oct  6 23:47:42 2011

description:
:SELinux is preventing /usr/bin/python from 'mac_admin' accesses on the capability2 Unknown.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed mac_admin access on the Unknown 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 yumBackend.py /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:rpm_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:rpm_t:s0-s0:c0.c1023
:Target Objects                Unknown [ capability2 ]
:Source                        yumBackend.py
:Source Path                   /usr/bin/python
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.2-4.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-32.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-0.rc8.git0.1.fc16.x86_64 #1 SMP
:                              Tue Oct 4 03:16:40 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Thu 06 Oct 2011 10:46:57 PM IRKT
:Last Seen                     Thu 06 Oct 2011 10:46:57 PM IRKT
:Local ID                      b4eabc83-b262-4416-adbd-1379fe6bf613
:
:Raw Audit Messages
:type=AVC msg=audit(1317912417.435:102): avc:  denied  { mac_admin } for  pid=2150 comm="yumBackend.py" capability=33  scontext=system_u:system_r:rpm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:rpm_t:s0-s0:c0.c1023 tclass=capability2
:
:
:type=SYSCALL msg=audit(1317912417.435:102): arch=x86_64 syscall=lsetxattr success=no exit=EINVAL a0=dcccf70 a1=7ff99fa0d21b a2=d7f9330 a3=24 items=0 ppid=1487 pid=2150 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=yumBackend.py exe=/usr/bin/python subj=system_u:system_r:rpm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: yumBackend.py,rpm_t,rpm_t,capability2,mac_admin
:
:audit2allow
:
:#============= rpm_t ==============
:allow rpm_t self:capability2 mac_admin;
:
:audit2allow -R
:
:#============= rpm_t ==============
:allow rpm_t self:capability2 mac_admin;
:

Comment 1 Daniel Walsh 2011-10-07 14:19:20 UTC

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