RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 843455 - munin_stats broken after upgrade to 6.3
Summary: munin_stats broken after upgrade to 6.3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.3
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: 6.3
Assignee: Miroslav Grepl
QA Contact: Michal Trunecka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-26 11:22 UTC by Alexander Kirillov
Modified: 2014-09-30 23:33 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.7.19-182.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:26:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0314 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2013-02-20 20:35:01 UTC

Description Alexander Kirillov 2012-07-26 11:22:04 UTC
Description of problem:

munin_stats plugin no longer works after upgrade to 6.3

Version-Release number of selected component (if applicable):

munin-node-1.4.7-5.el6.noarch
selinux-policy-targeted-3.7.19-155.el6_3.noarch

Additional info:

On a running system the problem could be fixed as follows:

1. Change the context of the plugin executable:

# semanage fcontext -a \
> -t munin_system_plugin_exec_t '/usr/share/munin/plugins/munin_.*'

Note:

Actually this should replace a meaningless rule for
'/usr/share/munin/plugins/munin_*' in the current targeted policy.

# restorecon -Rv /usr/share/munin

2. Add the following rules to a local policy:

type munin_system_plugin_t;
type munin_log_t;
type var_log_t;

allow munin_system_plugin_t var_log_t:dir search;
allow munin_system_plugin_t munin_log_t:dir search;
allow munin_system_plugin_t munin_log_t:file { read open };

Comment 1 d. johnson 2012-08-07 02:58:02 UTC
This looks like it may be a policy issue in el6, moving to there for comment.

Comment 3 Miroslav Grepl 2012-08-07 14:32:24 UTC
Yes, we need to backport it from Fedora.

Comment 4 Miroslav Grepl 2012-08-07 23:26:57 UTC
Fixed in selinux-policy-3.7.19-159.el6

Comment 5 Michal Trunecka 2012-09-24 13:59:19 UTC
Here is another AVC. I just let munin daemon run and I discovered this during some non-related tests:
selinux-policy-3.7.19-162.el6.noarch
munin-1.4.7-5.el6.noarch
munin-node-1.4.7-5.el6.noarch
munin-common-1.4.7-5.el6.noarch

----
time->Mon Sep 24 15:55:03 2012
type=PATH msg=audit(1348494903.742:2273): item=0 name="/var/lib/munin/plugin-state/munin_stats-127.0.0.1" inode=278001 dev=fd:00 mode=0100664 ouid=99 ogid=491 rdev=00:00 obj=unconfined_u:object_r:munin_plugin_state_t:s0
type=CWD msg=audit(1348494903.742:2273):  cwd="/"
type=SYSCALL msg=audit(1348494903.742:2273): arch=c000003e syscall=2 success=yes exit=3 a0=e56a50 a1=241 a2=1b6 a3=7f1d58f21be0 items=1 ppid=31621 pid=31795 auid=0 uid=99 gid=491 euid=99 suid=99 fsuid=99 egid=491 sgid=491 fsgid=491 tty=(none) ses=8 comm="munin_stats" exe="/usr/bin/perl" subj=unconfined_u:system_r:munin_t:s0 key=(null)
type=AVC msg=audit(1348494903.742:2273): avc:  denied  { write } for  pid=31795 comm="munin_stats" name="munin_stats-127.0.0.1" dev=dm-0 ino=278001 scontext=unconfined_u:system_r:munin_t:s0 tcontext=unconfined_u:object_r:munin_plugin_state_t:s0 tclass=file

Comment 10 Miroslav Grepl 2012-11-27 14:50:08 UTC
Fixed in selinux-policy-3.7.19-182.el6

# sesearch -A -s munin_t -t munin_t -c capability -p kill
Found 1 semantic av rules:
   allow munin_t munin_t : capability { chown dac_override kill setgid setuid sys_rawio } ;

Comment 11 Michal Trunecka 2012-11-28 08:07:30 UTC
And what about the rule from Comment 7?

 allow munin_system_plugin_t munin_log_t:dir search;

Comment 12 Miroslav Grepl 2012-11-28 08:31:48 UTC
Should be also fixed.

Comment 15 errata-xmlrpc 2013-02-21 08:26:11 UTC
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-2013-0314.html


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