Bug 739886
Summary: | avc: denied { read } for pid=19050 comm="rndc" path="/proc/loadavg" | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Robert Scheck <redhat-bugzilla> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | dwalsh, jwest, ksrot, mmalik, robert.scheck |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.7.19-136.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 12:24:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Robert Scheck
2011-09-20 10:34:23 UTC
I've cross-filed this issue as Service Request 00532319. I added to Fedora, adding to RHEL6. The AVC contains "success=yes". Could it mean a leaked file descriptor ? Good catch. I overlooked it. Yes, it looks like a leak. Do you use confined users? Or a tool when this happens? Also, what does # ps -eZ |grep initrc # ps -eZ |grep initrc system_u:system_r:initrc_t:s0 2742 ? 00:03:16 heartbeat system_u:system_r:initrc_t:s0 2771 ? 00:00:04 heartbeat system_u:system_r:initrc_t:s0 2773 ? 00:00:09 heartbeat system_u:system_r:initrc_t:s0 2775 ? 00:00:04 heartbeat system_u:system_r:initrc_t:s0 2776 ? 00:00:20 heartbeat system_u:system_r:initrc_t:s0 2777 ? 00:00:15 heartbeat system_u:system_r:initrc_t:s0 2779 ? 00:00:22 heartbeat system_u:system_r:initrc_t:s0 2780 ? 00:00:16 heartbeat system_u:system_r:initrc_t:s0 3093 ? 00:00:08 ipfail system_u:system_r:initrc_t:s0 3165 ? 00:00:08 dsm_sa_datamgrd system_u:system_r:initrc_t:s0 3272 ? 00:00:01 dsm_sa_eventmgr system_u:system_r:initrc_t:s0 3289 ? 00:00:00 rhnsd system_u:system_r:initrc_t:s0 3299 ? 00:00:00 rhsmcertd system_u:system_r:initrc_t:s0 3357 ? 00:00:00 dsm_om_shrsvcd # The line above that AVC denied in audit.log is always logrotate related and logrotate is executed by cron which is getting restarted by heartbeat. /etc/logrotate.d/named contains an "/etc/init.d/named reload" which executes an "/usr/sbin/rndc reload" again. Could that match? Ok, so it looks heartbeat is leaking. Robert, could you test the policy from the https://bugzilla.redhat.com/show_bug.cgi?id=720939#c14 Heartbeat needs to fix this leaking and also we need to add policy for it. We treat hearbeat with corosync policy. Fixed in selinux-policy-3.7.19-136.el6 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0780.html |