Bug 1231702 - [SELinux] [Nagios] Nagios syslogd_t avc's seen in RHEL-6.7 and RHEL-7.1
Summary: [SELinux] [Nagios] Nagios syslogd_t avc's seen in RHEL-6.7 and RHEL-7.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-nagios-addons
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 3.1.0
Assignee: Ramesh N
QA Contact: Stanislav Graf
URL:
Whiteboard:
Depends On: 1238963
Blocks: 1202842 1212796 1233547
TreeView+ depends on / blocked
 
Reported: 2015-06-15 09:21 UTC by Stanislav Graf
Modified: 2015-09-11 15:53 UTC (History)
11 users (show)

Fixed In Version: selinux-policy-3.7.19-279.el6 / selinux-policy-3.13.1-31.el7
Doc Type: Bug Fix
Doc Text:
On Gluster nodes monitored by the Nagios application, the syslogd utility was not able to run Nagios plug-ins. This update introduces a new Boolean called logging_syslogd_run_nagios_plugins, which enables syslogd to run such plug-ins properly.
Clone Of:
: 1233547 1233550 (view as bug list)
Environment:
Last Closed: 2015-07-29 05:33:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:1494 0 normal SHIPPED_LIVE Red Hat Gluster Storage Console 3.1 Enhancement and bug fixes 2015-07-29 09:24:02 UTC

Description Stanislav Graf 2015-06-15 09:21:29 UTC
Description of problem:
=======================

On my RHEL6 and RHEL7 gluster nodes monitored by Nagios I'm seeing following AVC:
~~~
Running 'rpm -q selinux-policy-targeted; ausearch -m avc -m user_avc -m selinux_err -i | audit2allow' on 10.34.75.241
selinux-policy-targeted-3.7.19-276.el6.noarch

#============= syslogd_t ==============
allow syslogd_t nagios_unconfined_plugin_exec_t:file execute;
Connection to 10.34.75.241 closed.
~~~
Running 'rpm -q selinux-policy-targeted; ausearch -m avc -m user_avc -m selinux_err -i | audit2allow' on 10.34.75.246
selinux-policy-targeted-3.13.1-27.el7.noarch

#============= syslogd_t ==============
allow syslogd_t nagios_unconfined_plugin_exec_t:file execute;
Connection to 10.34.75.246 closed.
~~~


Version-Release number of selected component (if applicable):
=============================================================
selinux-policy-targeted-3.7.19-276.el6.noarch
selinux-policy-targeted-3.13.1-27.el7.noarch

Comment 2 Miroslav Grepl 2015-06-15 16:15:47 UTC
Is there a rsyslog plugin module which executes nagios plugins?

Comment 3 RamaKasturi 2015-06-15 16:51:19 UTC
Sahina, could you please answer the question in comment 2?

Comment 5 Sahina Bose 2015-06-16 01:36:01 UTC
There's an omprog rsyslog plugin, which monitors the log entries and calls the nsca plugin of nagios

Comment 7 Sahina Bose 2015-06-19 05:47:40 UTC
Stanislav,

What's the question in Comment 6?

Miroslav,

Has there been any fix regarding this AVC in selinux-policy-targeted-3.7.19-278?

Comment 11 Prasanth 2015-06-19 08:03:04 UTC
Stanislav,

I've cloned this BZ against RHEL-6.7 [1] and RHEL-7.1 [2] for getting the fixes in RHEL and Milos has already provided a possible local policy module in those BZ's which fixes the reported issue. Could you please check if that helped and confirm back in the corresponding BZ's?

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1233547
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1233550

Comment 13 Linda Wang 2015-06-23 20:07:40 UTC
Do we ship Nagios in RHEL6 and/or RHEL7 as part of RHGS?
or RHEL6/7 Base?

Comment 14 Sahina Bose 2015-06-24 04:54:44 UTC
Nagios is shipped for RHEL6 and RHEL7 in RHGS channel, the nagios package is from LPC.

Comment 16 Linda Wang 2015-06-24 21:32:48 UTC
So, looks like the selinux policy needs to
be added to the nagios pkg that goes into RHGS RHEL6/7 channel.

Comment 17 Ramesh N 2015-07-01 12:20:00 UTC
This bug can be verified only after the required bug bz#1233550 is verified. 
Prasant: Can u check with the RHEL-7 team regarding the availability of the fix in  RHEL7.1 z stream?.

Comment 18 Prasanth 2015-07-01 18:37:59 UTC
(In reply to Ramesh N from comment #17)
> This bug can be verified only after the required bug bz#1233550 is verified. 
> Prasant: Can u check with the RHEL-7 team regarding the availability of the
> fix in  RHEL7.1 z stream?.

As per https://bugzilla.redhat.com/show_bug.cgi?id=1233550#c5, I see that the fix given by SELinux team is already confirmed as Fixed and verified. Since the BZ is currently in Modified state, you might soon get an official build having the fix. Once you get that, you can move this downstream BZ to ON_QA with that FIV for QE to verify.

Once the above BZ's are tested and Verified, I'll be requesting for a RHEL-7.1.Z clone of the RHEL BZ.

Hope that explains.

Comment 19 Stanislav Graf 2015-07-08 17:14:54 UTC
Fixed In Version: selinux-policy-3.7.19-279.el6 → selinux-policy-3.7.19-279.el6 / selinux-policy-3.13.1-23.el7_1.9

selinux-policy-3.13.1-23.el7_1.9 doesn't have required logging_syslogd_run_nagios_plugin boolean.

--> ASSIGNED

Comment 20 Ramesh N 2015-07-10 05:52:27 UTC
Required Sebool is not yet available in RHEL7.1. Setting the dependency to correct RHEL7.1 bugs.

Comment 21 Ramesh N 2015-07-10 07:26:32 UTC
required sebool is available in RHEL7.2 build 'selinux-policy-3.13.1-31.el7'. Moving this bug to ON_QA with 7.2 build.

Comment 22 Stanislav Graf 2015-07-11 19:26:38 UTC
Fixed In Version: selinux-policy-3.7.19-279.el6 / selinux-policy-3.13.1-31.el7

Tested:
selinux-policy-targeted-3.7.19-279.el6.noarch
logging_syslogd_run_nagios_plugins
nagios_run_sudo

selinux-policy-targeted-3.13.1-31.el7.noarch
logging_syslogd_run_nagios_plugins
nagios_run_pnp4nagios
nagios_run_sudo

Above selinux-policy builds with enable boolean logging_syslogd_run_nagios_plugins fixes AVCs mentioned in Comment 0.

--> VERIFIED

Comment 23 errata-xmlrpc 2015-07-29 05:33:32 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.

https://rhn.redhat.com/errata/RHEA-2015-1494.html

Comment 25 RamaKasturi 2015-09-11 15:53:37 UTC
Hi Matthew,

   I have now made that public. Can you please check it out?

Thanks
kasturi


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