Bug 981464 - htop trigger lots of AVC when user is not in not unconfined_u
Summary: htop trigger lots of AVC when user is not in not unconfined_u
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-04 19:57 UTC by Michael S.
Modified: 2013-07-14 03:38 UTC (History)
1 user (show)

Fixed In Version: selinux-policy-3.12.1-63.fc19
Clone Of:
Environment:
Last Closed: 2013-07-14 03:38:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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