Bug 868656 - SELinux is preventing /usr/bin/python2.7 from using the 'sys_nice' capabilities.
Summary: SELinux is preventing /usr/bin/python2.7 from using the 'sys_nice' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e808bbe4719bbfc7ce2f22d9022...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-21 13:49 UTC by geminic86
Modified: 2012-12-20 15:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:16:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-21 13:49 UTC, geminic86
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-21 13:49 UTC, geminic86
no flags Details

Description geminic86 2012-10-21 13:49:52 UTC
Additional info:
libreport version: 2.0.16
kernel:         3.6.2-4.fc17.i686.PAEdebug

description:
:SELinux is preventing /usr/bin/python2.7 from using the 'sys_nice' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should have the sys_nice capability 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 epylog /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
:Target Objects                 [ capability ]
:Source                        epylog
:Source Path                   /usr/bin/python2.7
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-7.2.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.2-4.fc17.i686.PAEdebug #1 SMP
:                              Wed Oct 17 02:39:55 UTC 2012 i686 i686
:Alert Count                   2
:First Seen                    2012-10-20 19:35:06 EDT
:Last Seen                     2012-10-21 03:10:07 EDT
:Local ID                      fec863aa-c524-4036-bcc8-2242c66ce42d
:
:Raw Audit Messages
:type=AVC msg=audit(1350803407.17:1404): avc:  denied  { sys_nice } for  pid=29223 comm="epylog" capability=23  scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tclass=capability
:
:
:type=AVC msg=audit(1350803407.17:1404): avc:  denied  { setsched } for  pid=29223 comm="epylog" scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tclass=process
:
:
:type=SYSCALL msg=audit(1350803407.17:1404): arch=i386 syscall=sched_setscheduler success=no exit=EACCES a0=7227 a1=0 a2=bfaa545c a3=b77786c0 items=0 ppid=29221 pid=29223 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=182 comm=epylog exe=/usr/bin/python2.7 subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null)
:
:Hash: epylog,logwatch_t,logwatch_t,capability,sys_nice
:
:audit2allow
:
:#============= logwatch_t ==============
:allow logwatch_t self:capability sys_nice;
:allow logwatch_t self:process setsched;
:
:audit2allow -R
:
:#============= logwatch_t ==============
:allow logwatch_t self:capability sys_nice;
:allow logwatch_t self:process setsched;
:

Comment 1 geminic86 2012-10-21 13:49:55 UTC
Created attachment 630875 [details]
File: type

Comment 2 geminic86 2012-10-21 13:49:56 UTC
Created attachment 630876 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-10-23 13:29:59 UTC
Added.

commit 49d7ced5f67c230cfc0c2975683feec98bc48923
Author: Miroslav Grepl <mgrepl>
Date:   Tue Oct 23 15:28:39 2012 +0200

    logwatch wants sys_nice/setsched
     * needed by syscall=sched_setscheduler

Comment 4 Fedora Update System 2012-11-06 08:19:55 UTC
selinux-policy-3.10.0-159.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-159.fc17

Comment 5 Fedora Update System 2012-11-08 02:02:14 UTC
Package selinux-policy-3.10.0-159.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-159.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17782/selinux-policy-3.10.0-159.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 15:16:11 UTC
selinux-policy-3.10.0-159.fc17 has been pushed to the Fedora 17 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.