Bug 920409 - SELinux is preventing /usr/bin/python2.7 from 'read_policy' accesses on the security .
Summary: SELinux is preventing /usr/bin/python2.7 from 'read_policy' accesses on the s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4404aee036dbe1078cfb42e307c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-12 03:27 UTC by Andrew Colville
Modified: 2013-05-23 12:27 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.11.1-96.fc18
Clone Of:
Environment:
Last Closed: 2013-05-23 12:27:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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