<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FC6, SELinux and Nagios</title>
	<atom:link href="http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/</link>
	<description>Acquiring information, one day at a time.</description>
	<lastBuildDate>Fri, 30 Jul 2010 16:01:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jason Sjobeck</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-19991</link>
		<dc:creator>Jason Sjobeck</dc:creator>
		<pubDate>Mon, 08 Dec 2008 06:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-19991</guid>
		<description>I wish I had something exactly like this for OTRS, which is giving me fits on my centOS 5.2 machine runing Apache 2. I am getting this error:

[Sun Dec 07 22:00:56 2008] [error] [client 10.0.100.12] attempt to invoke directory as script: /opt/otrs/bin/cgi-bin/

Ut oh, sorry, I just realized that I can not tell if this from mod_suexec? or selinux? or what?</description>
		<content:encoded><![CDATA[<p>I wish I had something exactly like this for OTRS, which is giving me fits on my centOS 5.2 machine runing Apache 2. I am getting this error:</p>
<p>[Sun Dec 07 22:00:56 2008] [error] [client 10.0.100.12] attempt to invoke directory as script: /opt/otrs/bin/cgi-bin/</p>
<p>Ut oh, sorry, I just realized that I can not tell if this from mod_suexec? or selinux? or what?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r hill</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-10174</link>
		<dc:creator>r hill</dc:creator>
		<pubDate>Wed, 09 Apr 2008 02:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-10174</guid>
		<description>Under Fedora 7, it appears some mods must be made to the above.  I had to add a couple of lines to the local policy module.  Here&#039;s what I ended up with, in order to get no errors listed from setroubleshoot.  Not sure if the allow ping_t var_spool_t is still needed or not:
module local 1.0.0;
require {
 class fifo_file read;
 class fifo_file getattr;
 class fifo_file write;
 class dir search;
 class process { sigkill signal };
 type httpd_t;
 type httpd_nagios_script_t;
 type nagios_cgi_t;
 type nagios_log_t;
 type ping_t;
 type var_spool_t;
 role system_r;
};

allow ping_t var_spool_t:fifo_file read;
allow ping_t nagios_log_t:fifo_file read;
allow httpd_t nagios_cgi_t:process { sigkill signal };
allow nagios_cgi_t var_spool_t:fifo_file getattr;
allow nagios_cgi_t var_spool_t:dir search;
allow nagios_cgi_t var_spool_t:fifo_file write;
allow httpd_nagios_script_t nagios_log_t:fifo_file getattr;
allow httpd_nagios_script_t nagios_log_t:fifo_file write;</description>
		<content:encoded><![CDATA[<p>Under Fedora 7, it appears some mods must be made to the above.  I had to add a couple of lines to the local policy module.  Here&#8217;s what I ended up with, in order to get no errors listed from setroubleshoot.  Not sure if the allow ping_t var_spool_t is still needed or not:<br />
module local 1.0.0;<br />
require {<br />
 class fifo_file read;<br />
 class fifo_file getattr;<br />
 class fifo_file write;<br />
 class dir search;<br />
 class process { sigkill signal };<br />
 type httpd_t;<br />
 type httpd_nagios_script_t;<br />
 type nagios_cgi_t;<br />
 type nagios_log_t;<br />
 type ping_t;<br />
 type var_spool_t;<br />
 role system_r;<br />
};</p>
<p>allow ping_t var_spool_t:fifo_file read;<br />
allow ping_t nagios_log_t:fifo_file read;<br />
allow httpd_t nagios_cgi_t:process { sigkill signal };<br />
allow nagios_cgi_t var_spool_t:fifo_file getattr;<br />
allow nagios_cgi_t var_spool_t:dir search;<br />
allow nagios_cgi_t var_spool_t:fifo_file write;<br />
allow httpd_nagios_script_t nagios_log_t:fifo_file getattr;<br />
allow httpd_nagios_script_t nagios_log_t:fifo_file write;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Lundberg</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-4828</link>
		<dc:creator>Jake Lundberg</dc:creator>
		<pubDate>Tue, 27 Nov 2007 20:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-4828</guid>
		<description>Thanks for the pointers.   While this didn&#039;t work for me step by step, I thought I&#039;d share my how I overcame the differences.  

I used the following to get the necessary classes and types:

&lt;code&gt;cat /var/log/audit/audit.log &#124; audit2allow &gt;&gt; my_nagios.te&lt;/code&gt;

SAMPLE OUTPUT:
#============= httpd_nagios_script_t ==============
allow httpd_nagios_script_t var_spool_t:dir search;


This gave me the skeleton file that has the allows I needed to import.  Make sure to look it over for anything that might actually be a violation of course and remove those lines.  Then make sure to include all classes (those entries after the :&#039;s) and types (those entries before the :&#039;s) in the require block as shown above.  

I named my policy my_nagios.te because nagios was already taken and giving errors:

libsepol.print_missing_requirements: nagios&#039;s global requirements were not met: type/attribute nagios_etc_t
libsemanage.semanage_link_sandbox: Link packages failed
semodule:  Failed!

Then I made and imported the my_nagios.pp file and now my SELinux is playing nicely with Nagios.

Thanks again for the help!</description>
		<content:encoded><![CDATA[<p>Thanks for the pointers.   While this didn&#8217;t work for me step by step, I thought I&#8217;d share my how I overcame the differences.  </p>
<p>I used the following to get the necessary classes and types:</p>
<p><code>cat /var/log/audit/audit.log | audit2allow &amp;gt;&amp;gt; my_nagios.te</code></p>
<p>SAMPLE OUTPUT:<br />
#============= httpd_nagios_script_t ==============<br />
allow httpd_nagios_script_t var_spool_t:dir search;</p>
<p>This gave me the skeleton file that has the allows I needed to import.  Make sure to look it over for anything that might actually be a violation of course and remove those lines.  Then make sure to include all classes (those entries after the :&#8217;s) and types (those entries before the :&#8217;s) in the require block as shown above.  </p>
<p>I named my policy my_nagios.te because nagios was already taken and giving errors:</p>
<p>libsepol.print_missing_requirements: nagios&#8217;s global requirements were not met: type/attribute nagios_etc_t<br />
libsemanage.semanage_link_sandbox: Link packages failed<br />
semodule:  Failed!</p>
<p>Then I made and imported the my_nagios.pp file and now my SELinux is playing nicely with Nagios.</p>
<p>Thanks again for the help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneBigBadBoy</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-4532</link>
		<dc:creator>OneBigBadBoy</dc:creator>
		<pubDate>Mon, 22 Oct 2007 12:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-4532</guid>
		<description>Hi,

I installed it in my CentOS5 system, via the Fedora 6 repository. Because I use lighttpd I had to configure it first. As soon as I did that it worked out of the box.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I installed it in my CentOS5 system, via the Fedora 6 repository. Because I use lighttpd I had to configure it first. As soon as I did that it worked out of the box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerwin</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-4327</link>
		<dc:creator>Gerwin</dc:creator>
		<pubDate>Mon, 17 Sep 2007 08:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-4327</guid>
		<description>Great! This one helped me a lot! I used it on RHEL 5 and using the EPEL nagios rpms which work flawless with your manual.</description>
		<content:encoded><![CDATA[<p>Great! This one helped me a lot! I used it on RHEL 5 and using the EPEL nagios rpms which work flawless with your manual.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Russell</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-795</link>
		<dc:creator>Scott Russell</dc:creator>
		<pubDate>Wed, 18 Apr 2007 14:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-795</guid>
		<description>Hi, 
      This worked great under FC6.  Saved me loads of time.  Many thanks for the post.  Worked fine, only issue I had was creating the local.te file as root, this seemed to give a problem, so I created it as a normal user, and then did the sudo bit(I suppose it might be obvious in hind sight).</description>
		<content:encoded><![CDATA[<p>Hi,<br />
      This worked great under FC6.  Saved me loads of time.  Many thanks for the post.  Worked fine, only issue I had was creating the local.te file as root, this seemed to give a problem, so I created it as a normal user, and then did the sudo bit(I suppose it might be obvious in hind sight).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thom Howard</title>
		<link>http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/comment-page-1/#comment-207</link>
		<dc:creator>Thom Howard</dc:creator>
		<pubDate>Tue, 27 Feb 2007 04:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.rickwargo.com/2006/10/29/fc6-selinux-and-nagios/#comment-207</guid>
		<description>Thanks for the article!  I was pulling my hair out trying to get nagios to run under fedora 6.  I was just about to ditch selinux when I found your post.

Your instructions worked flawlessly.</description>
		<content:encoded><![CDATA[<p>Thanks for the article!  I was pulling my hair out trying to get nagios to run under fedora 6.  I was just about to ditch selinux when I found your post.</p>
<p>Your instructions worked flawlessly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
