<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: A step-by-step guide to building a new SELinux policy module</title>
	<atom:link href="http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/feed/" rel="self" type="application/rss+xml" />
	<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 30 Nov 2009 15:42:00 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: The Linux Guide - A must be ! - WHM/cPanel Support Platform</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1411</link>
		<dc:creator>The Linux Guide - A must be ! - WHM/cPanel Support Platform</dc:creator>
		<pubDate>Tue, 11 Nov 2008 00:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1411</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tux Training &#187; Blog Archive &#187; A step-by-step guide to building a new SELinux policy module</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1410</link>
		<dc:creator>Tux Training &#187; Blog Archive &#187; A step-by-step guide to building a new SELinux policy module</dc:creator>
		<pubDate>Mon, 12 May 2008 21:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1410</guid>
		<description>[...] Source [...]</description>
		<content:encoded><![CDATA[<p>[...] Source [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhrugu</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1409</link>
		<dc:creator>bhrugu</dc:creator>
		<pubDate>Mon, 28 Apr 2008 16:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1409</guid>
		<description>i would like to work with new reference policy enhancement</description>
		<content:encoded><![CDATA[<p>i would like to work with new reference policy enhancement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karanbir Singh</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1408</link>
		<dc:creator>Karanbir Singh</dc:creator>
		<pubDate>Mon, 14 Jan 2008 04:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1408</guid>
		<description>Just want to point out that ( atleast on RHEL5 and clones ), the package you need to install in order to get system-config-selinux is policycoreutils-gui</description>
		<content:encoded><![CDATA[<p>Just want to point out that ( atleast on RHEL5 and clones ), the package you need to install in order to get system-config-selinux is policycoreutils-gui</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Walsh</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1407</link>
		<dc:creator>Dan Walsh</dc:creator>
		<pubDate>Wed, 02 Jan 2008 17:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1407</guid>
		<description>setsebool -P httpd_can_network_connect_db=1

If you were running setroubleshoot, it would have told you this.</description>
		<content:encoded><![CDATA[<p>setsebool -P httpd_can_network_connect_db=1</p>
<p>If you were running setroubleshoot, it would have told you this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lgm</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1406</link>
		<dc:creator>lgm</dc:creator>
		<pubDate>Tue, 01 Jan 2008 22:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1406</guid>
		<description>I am struggling to get away from Windows and all the nice click options. I have just spent days building up a working Fedora 8 server with MySQL php and Apache, all working, all the chmods sorted and so on. Now I want to set up Zen Shopping cart which I have running fine on a Windows box. (I want to get into Apache POI java for an Excel application and windows is not the place to do this).

BLAM, I am bu...red. SeLinux has decided to to stop ZenCart talking to MySQL. I can understand why but now I have to spend most of another day making a policy file.

Will you guys who write this stuff please learn that normal people will never get seriously into Linux while you leave all these little exercises in masochism in the software. Bill Gates must be laughing all the way to the bank yet again.

Fortunately I do not need SELinux at home so out it goes for now.</description>
		<content:encoded><![CDATA[<p>I am struggling to get away from Windows and all the nice click options. I have just spent days building up a working Fedora 8 server with MySQL php and Apache, all working, all the chmods sorted and so on. Now I want to set up Zen Shopping cart which I have running fine on a Windows box. (I want to get into Apache POI java for an Excel application and windows is not the place to do this).</p>
<p>BLAM, I am bu&#8230;red. SeLinux has decided to to stop ZenCart talking to MySQL. I can understand why but now I have to spend most of another day making a policy file.</p>
<p>Will you guys who write this stuff please learn that normal people will never get seriously into Linux while you leave all these little exercises in masochism in the software. Bill Gates must be laughing all the way to the bank yet again.</p>
<p>Fortunately I do not need SELinux at home so out it goes for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torbjørn</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1405</link>
		<dc:creator>Torbjørn</dc:creator>
		<pubDate>Tue, 02 Oct 2007 10:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1405</guid>
		<description>Hello, thank you for the answer. That was ofcourse the reason.

I have been reading alot of your journals and howto&#039;s on the web and fine them extremely usefull, thank you very much.

I&#039;ll address the mailing list for more questions, seems like a better fora for more basic issues like this.</description>
		<content:encoded><![CDATA[<p>Hello, thank you for the answer. That was ofcourse the reason.</p>
<p>I have been reading alot of your journals and howto&#8217;s on the web and fine them extremely usefull, thank you very much.</p>
<p>I&#8217;ll address the mailing list for more questions, seems like a better fora for more basic issues like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Walsh</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1404</link>
		<dc:creator>Dan Walsh</dc:creator>
		<pubDate>Tue, 18 Sep 2007 11:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1404</guid>
		<description>You need to add a domain transition rule to the policy.
Since you want to transition from the unconfined_t domain to the myapp_t.

An interface should have been created in the if file called
myapp_domtrans.

So you could add to your te file,

gen_require (`
type unconfined_t;
&#039;)
myapp_domtrans(unconfined_t)


Of you could simply add these lines to your code.

        domain_auto_trans(unconfined_t,myapp_exec_t,myapp_t)

        allow unconfined_t myapp_t:fd use;
        allow myapp_t unconfined_t:fifo_file rw_file_perms;
        allow myapp_t unconfined_t:process sigchld;</description>
		<content:encoded><![CDATA[<p>You need to add a domain transition rule to the policy.<br />
Since you want to transition from the unconfined_t domain to the myapp_t.</p>
<p>An interface should have been created in the if file called<br />
myapp_domtrans.</p>
<p>So you could add to your te file,</p>
<p>gen_require (`<br />
type unconfined_t;<br />
&#8216;)<br />
myapp_domtrans(unconfined_t)</p>
<p>Of you could simply add these lines to your code.</p>
<p>        domain_auto_trans(unconfined_t,myapp_exec_t,myapp_t)</p>
<p>        allow unconfined_t myapp_t:fd use;<br />
        allow myapp_t unconfined_t:fifo_file rw_file_perms;<br />
        allow myapp_t unconfined_t:process sigchld;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torbjorn Lindahl</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1403</link>
		<dc:creator>Torbjorn Lindahl</dc:creator>
		<pubDate>Wed, 12 Sep 2007 14:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1403</guid>
		<description>I&#039;m a bit puzzled..

I am writing a new application that I want to tie down as strict as reasonable using SELinux.

the gui worked nicely and set up the files needed to compile the selinx module. (i just had to add &quot;type myapp_t;&quot; since that did not already exist)

However... it also granted the app
corecmd_executable_file(myapp_exec_t)

And trial and error concluded that this one single rule allowed the app to do whatever it pleased... All other selinux settings, network ports etc.. as generated by the GUI had no real effect as long as that one single rule was in the source.

If i remove that one particular rule and run audi2dallow, it suggests:
allow unconfined_t myapp_exec_t:file { ioctl relabelfrom execute read getattr execute_no_trans };

.. which by my limited understanding seems way to broad, ie basically the let the app do anything. Wtih that one rule in the source the app was again allowed to do anything.

where do I go from here..</description>
		<content:encoded><![CDATA[<p>I&#8217;m a bit puzzled..</p>
<p>I am writing a new application that I want to tie down as strict as reasonable using SELinux.</p>
<p>the gui worked nicely and set up the files needed to compile the selinx module. (i just had to add &#8220;type myapp_t;&#8221; since that did not already exist)</p>
<p>However&#8230; it also granted the app<br />
corecmd_executable_file(myapp_exec_t)</p>
<p>And trial and error concluded that this one single rule allowed the app to do whatever it pleased&#8230; All other selinux settings, network ports etc.. as generated by the GUI had no real effect as long as that one single rule was in the source.</p>
<p>If i remove that one particular rule and run audi2dallow, it suggests:<br />
allow unconfined_t myapp_exec_t:file { ioctl relabelfrom execute read getattr execute_no_trans };</p>
<p>.. which by my limited understanding seems way to broad, ie basically the let the app do anything. Wtih that one rule in the source the app was again allowed to do anything.</p>
<p>where do I go from here..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerwin</title>
		<link>http://magazine.redhat.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1402</link>
		<dc:creator>Gerwin</dc:creator>
		<pubDate>Wed, 22 Aug 2007 16:53:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.redhatmagazine.com/2007/08/21/a-step-by-step-guide-to-building-a-new-selinux-policy-module/#comment-1402</guid>
		<description>Oke thanks Dan, as I&#039;m fairly new to SElinux I didn&#039;t know it was that easy :)

Cheers</description>
		<content:encoded><![CDATA[<p>Oke thanks Dan, as I&#8217;m fairly new to SElinux I didn&#8217;t know it was that easy <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
