Bug 748091

Summary: SELinux is preventing /usr/bin/python from 'getattr' accesses on the file /etc/selinux/targeted/policy/policy.26.
Product: [Fedora] Fedora Reporter: James Cape <jamescape777>
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:7c486c83026101d3a55b5a1837802b25d3d8750d49db9817f87993c566d5664a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-24 05:40: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:

Description James Cape 2011-10-22 01:22:51 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc10.git0.1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/python from 'getattr' accesses on the file /etc/selinux/targeted/policy/policy.26.
time:           Fri Oct 21 20:22:42 2011

description:
:SELinux is preventing /usr/bin/python from 'getattr' accesses on the file /etc/selinux/targeted/policy/policy.26.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed getattr access on the policy.26 file 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 audit2allow /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:semanage_store_t:s0
:Target Objects                /etc/selinux/targeted/policy/policy.26 [ file ]
:Source                        audit2allow
:Source Path                   /usr/bin/python
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.2-4.fc16
:Target RPM Packages           selinux-policy-targeted-3.10.0-40.fc16
:Policy RPM                    selinux-policy-3.10.0-40.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux orwell.ignore-your.tv
:                              3.1.0-0.rc10.git0.1.fc16.x86_64 #1 SMP Wed Oct 19
:                              05:02:17 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fri 21 Oct 2011 08:21:00 PM CDT
:Last Seen                     Fri 21 Oct 2011 08:21:00 PM CDT
:Local ID                      e3162fae-0575-4945-88a3-76162ceda96f
:
:Raw Audit Messages
:type=AVC msg=audit(1319246460.853:406): avc:  denied  { getattr } for  pid=4705 comm="audit2allow" path="/etc/selinux/targeted/policy/policy.26" dev=dm-1 ino=2056131 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:semanage_store_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1319246460.853:406): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7ffffeb2b640 a2=7ffffeb2b640 a3=0 items=0 ppid=4639 pid=4705 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm=audit2allow exe=/usr/bin/python subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: audit2allow,xdm_t,semanage_store_t,file,getattr
:
:audit2allow
:
:#============= xdm_t ==============
:allow xdm_t semanage_store_t:file getattr;
:
:audit2allow -R
:
:#============= xdm_t ==============
:allow xdm_t semanage_store_t:file getattr;
:

Comment 1 Miroslav Grepl 2011-10-24 05:40:36 UTC

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