Bug 920409

Summary: SELinux is preventing /usr/bin/python2.7 from 'read_policy' accesses on the security .
Product: [Fedora] Fedora Reporter: Andrew Colville <shockingbehavur>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, harnmike, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4404aee036dbe1078cfb42e307cb2ee434c5bcb2d94edfcf239bd12cdc5a3c73
Fixed In Version: selinux-policy-3.11.1-96.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-23 12:27:09 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 Andrew Colville 2013-03-12 03:27:21 UTC
Description of problem:
SELinux is preventing /usr/bin/python2.7 from 'read_policy' accesses on the security .

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

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

Additional Information:
Source Context                system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.
                              c1023
Target Context                system_u:object_r:security_t:s0
Target Objects                 [ security ]
Source                        sealert
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.3-13.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-82.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.8.1-201.fc18.x86_64 #1 SMP Thu
                              Feb 28 19:23:08 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-12 16:26:06 NZDT
Last Seen                     2013-03-12 16:26:06 NZDT
Local ID                      b19ccf21-8402-4907-bccd-d5de79a58dcb

Raw Audit Messages
type=AVC msg=audit(1363058766.578:334): avc:  denied  { read_policy } for  pid=1982 comm="sealert" scontext=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:security_t:s0 tclass=security


type=SYSCALL msg=audit(1363058766.578:334): arch=x86_64 syscall=open success=yes exit=ENXIO a0=9f10e0 a1=0 a2=1b6 a3=238 items=0 ppid=1981 pid=1982 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=sealert exe=/usr/bin/python2.7 subj=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 key=(null)

Hash: sealert,setroubleshoot_fixit_t,security_t,security,read_policy

audit2allow

#============= setroubleshoot_fixit_t ==============
allow setroubleshoot_fixit_t security_t:security read_policy;

audit2allow -R

#============= setroubleshoot_fixit_t ==============
allow setroubleshoot_fixit_t security_t:security read_policy;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.1-201.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-03-12 10:28:30 UTC
It has been fixed in selinux-policy-3.11.1-82.fc18.noarch

Comment 2 harnmike 2013-03-23 12:13:58 UTC
don't know

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 3 Hayke 2013-05-18 08:53:17 UTC
problem occured on boot-up

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 4 Fedora Update System 2013-05-20 13:40:53 UTC
selinux-policy-3.11.1-96.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-96.fc18

Comment 5 Fedora Update System 2013-05-21 08:43:27 UTC
Package selinux-policy-3.11.1-96.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-96.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-8730/selinux-policy-3.11.1-96.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-05-23 12:27:09 UTC
selinux-policy-3.11.1-96.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.