Bug 981464

Summary: htop trigger lots of AVC when user is not in not unconfined_u
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.12.1-63.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-14 03:38:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael S. 2013-07-04 19:57:49 UTC
I decided to run my user in a confined domain instead of unconfined_u. 

And I just found out that running htop trigger lots of avc :

type=AVC msg=audit(1372967416.918:7792): avc:  denied  { getsched } for  pid=25449 comm="htop" scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:system_r:getty_t:s0 tclass=process

on various target domains, so I suspect that's 1 avc per process.


And this make setroubleshoot taking all my cpu for a long time, which is how I found about the issue.

Either that access should be noted as dontaudit, or htop should run in a specific domain, or setroubleshoot shouldn't take so much cpu.

Comment 1 Michael S. 2013-07-04 19:59:43 UTC
$ rpm -q selinux-policy
selinux-policy-3.12.1-57.fc19.noarch

$ id -Z 
staff_u:staff_r:staff_t:s0

Comment 2 Daniel Walsh 2013-07-05 11:30:58 UTC
d8648e06cd463a86fb5e112b532fbb0d13424191 fixes this in git.

+domain_getsched_all_domains(staff_t)

If you add this to local policy you should get rid of the AVCs

Comment 3 Fedora Update System 2013-07-11 08:57:27 UTC
selinux-policy-3.12.1-63.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-63.fc19

Comment 4 Fedora Update System 2013-07-12 02:57:05 UTC
Package selinux-policy-3.12.1-63.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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.12.1-63.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-12762/selinux-policy-3.12.1-63.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-07-14 03:38:11 UTC
selinux-policy-3.12.1-63.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.