Bug 748092

Summary: SELinux is preventing /usr/bin/python from 'read' accesses on the directory /etc/selinux/targeted/policy.
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:b05984a4eaa91e8470b1aaf50c427f40fcbd02d2867c15b7a60d152af75d6599
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-24 05:40:52 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 James Cape 2011-10-22 01:23:11 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 'read' accesses on the directory /etc/selinux/targeted/policy.
time:           Fri Oct 21 20:23:01 2011

description:
:SELinux is preventing /usr/bin/python from 'read' accesses on the directory /etc/selinux/targeted/policy.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed read access on the policy 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 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 [ dir ]
: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                      452ff2f5-d15c-4113-a206-a33f8c9c8836
:
:Raw Audit Messages
:type=AVC msg=audit(1319246460.896:407): avc:  denied  { read } for  pid=4705 comm="audit2allow" name="policy" dev=dm-1 ino=101374 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:semanage_store_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1319246460.896:407): arch=x86_64 syscall=openat success=yes exit=EIO a0=ffffffffffffff9c a1=7ffffeb2cee0 a2=90800 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,dir,read
:
:audit2allow
:
:#============= xdm_t ==============
:allow xdm_t semanage_store_t:dir read;
:
:audit2allow -R
:
:#============= xdm_t ==============
:allow xdm_t semanage_store_t:dir read;
:

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

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