Bug 909537 - SELinux is preventing /usr/bin/python2.7 from using the 'setsched' accesses on a process.
Summary: SELinux is preventing /usr/bin/python2.7 from using the 'setsched' accesses o...
Keywords:
Status: CLOSED CURRENTRELEASE
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:122f92e1550f89a65baf0e1682d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-09 09:17 UTC by Niki Guldbrand
Modified: 2013-02-18 06:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-18 06:57:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 909539 0 unspecified CLOSED SELinux is preventing /usr/bin/python2.7 from 'name_connect' accesses on the tcp_socket . 2021-02-22 00:41:40 UTC

Internal Links: 909539

Description Niki Guldbrand 2013-02-09 09:17:01 UTC
Description of problem:
I'm in the process of configuring Openstack (keystone service atm.), and noticed this alert
SELinux is preventing /usr/bin/python2.7 from using the 'setsched' accesses on a process.

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

If you believe that python2.7 should be allowed setsched access on processes labeled keystone_t 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 keystone-all /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:keystone_t:s0
Target Context                system_u:system_r:keystone_t:s0
Target Objects                 [ process ]
Source                        keystone-all
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-74.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.5-201.fc18.x86_64 #1 SMP Mon
                              Jan 28 19:54:41 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-02-09 09:16:41 CET
Last Seen                     2013-02-09 09:43:04 CET
Local ID                      b7b15f3a-2eac-487f-87a2-87d252ca6288

Raw Audit Messages
type=AVC msg=audit(1360399384.916:915): avc:  denied  { setsched } for  pid=12496 comm="keystone-all" scontext=system_u:system_r:keystone_t:s0 tcontext=system_u:system_r:keystone_t:s0 tclass=process


type=SYSCALL msg=audit(1360399384.916:915): arch=x86_64 syscall=sched_setscheduler success=no exit=EACCES a0=30d0 a1=0 a2=7fffc41bfad0 a3=1 items=0 ppid=1 pid=12496 auid=4294967295 uid=163 gid=163 euid=163 suid=163 fsuid=163 egid=163 sgid=163 fsgid=163 ses=4294967295 tty=(none) comm=keystone-all exe=/usr/bin/python2.7 subj=system_u:system_r:keystone_t:s0 key=(null)

Hash: keystone-all,keystone_t,keystone_t,process,setsched

audit2allow

#============= keystone_t ==============
allow keystone_t self:process setsched;

audit2allow -R

#============= keystone_t ==============
allow keystone_t self:process setsched;


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

Comment 1 Miroslav Grepl 2013-02-11 12:25:54 UTC
Added.

Comment 2 Fedora Update System 2013-02-15 22:43:33 UTC
selinux-policy-3.11.1-78.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-78.fc18

Comment 3 Fedora Update System 2013-02-17 03:23:09 UTC
Package selinux-policy-3.11.1-78.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-78.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2588/selinux-policy-3.11.1-78.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-18 06:57:23 UTC
selinux-policy-3.11.1-78.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.