<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tommi&#039;s stuff &#187; centos</title>
	<atom:link href="http://tommi.org/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommi.org</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 17:25:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SElinux and Proliant Support Pack (PSP) on RHEL or Centos 5</title>
		<link>http://tommi.org/2010/01/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/</link>
		<comments>http://tommi.org/2010/01/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 20:01:51 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[open source]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[proliant support pack]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rhel5]]></category>
		<category><![CDATA[rhel54]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=55</guid>
		<description><![CDATA[I&#8217;ve been getting these annoying messages in the audit log, /var/log/audit/audit.log after installing the Proliant Support Pack on RHEL5. type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;/dev/hpilo/d0ccb5&#8243; dev=tmpfs ino=6784 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file type=AVC msg=audit(1262639482.789:2027381): avc:  denied  &#8230; <a href="http://tommi.org/2010/01/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting these annoying messages in the audit log, /var/log/audit/audit.log after installing the Proliant Support Pack on RHEL5.</p>
<blockquote><p>type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;/dev/hpilo/d0ccb5&#8243; dev=tmpfs ino=6784 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file<br />
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;socket:[22602]&#8221; dev=sockfs ino=22602 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=netlink_route_socket</p></blockquote>
<p>I don&#8217;t know what this is but <strong>I DON&#8217;T</strong> want to allow it and I don&#8217;t want to see this in the audit log anymore</p>
<p>First off 3 terms:</p>
<ul>
<li>SElinux &#8211; <strong>Security-Enhanced Linux</strong> (<strong>SELinux</strong>) is a Linux feature that provides a mechanism for supporting access control security policies, including <a title="U.S. Department of Defense" href="http://en.wikipedia.org/wiki/U.S._Department_of_Defense">U.S. Department of Defense</a> style <a title="Mandatory access control" href="http://en.wikipedia.org/wiki/Mandatory_access_control">mandatory access controls</a>, through the use of <a title="Linux Security Modules" href="http://en.wikipedia.org/wiki/Linux_Security_Modules">Linux Security Modules</a> (LSM) in the <a title="Linux kernel" href="http://en.wikipedia.org/wiki/Linux_kernel">Linux kernel</a>. (wikipedia)</li>
<li><a href="http://h18000.www1.hp.com/products/servers/management/psp/">ProLiant Support Packs</a> (PSP) represent operating system (OS) specific bundles of ProLiant optimized drivers, utilities, and management agents.</li>
<li>RHEL (Red Hat Enterprise Linux) &#8211; CentOS (Community ENTerprise Operating System, RHEL Clone)</li>
</ul>
<p>So basicly what I did to get rid of these messages is that I wrote a new module called pspignore to ignore, without allowing them. Here&#8217;s what I did:</p>
<p><strong>Make a local directory for my modules</strong></p>
<blockquote><p>mkdir -p /etc/selinux/local</p></blockquote>
<blockquote><p>cd /etc/selinux/local</p></blockquote>
<p><strong>Download my custom module which include &#8220;dontaudit&#8221; for these conditions.</strong></p>
<blockquote><p>wget http://tommi.org/static/ignorepsp.te</p></blockquote>
<p><strong>Build the module and install it</strong></p>
<blockquote><p>checkmodule -M -m -o ignorepsp.mod ignorepsp.te</p>
<p>semodule_package -o ignorepsp.pp -m ignorepsp.mod</p>
<p>semodule -i ignorepsp.pp</p></blockquote>
<p>That should be it. The main thing can be found at the bottom of ignorepsp.te:</p>
<blockquote><p>dontaudit ifconfig_t device_t:chr_file { read write };<br />
dontaudit ifconfig_t initrc_t:netlink_route_socket { read write };</p></blockquote>
<p>Hope this is helpfull.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Ftommi.org%2F2010%2F01%2Fselinux-and-proliant-support-pack-psp-on-rhel-or-centos-5%2F&amp;title=SElinux%20and%20Proliant%20Support%20Pack%20%28PSP%29%20on%20RHEL%20or%20Centos%205" id="wpa2a_2"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2010/01/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

