
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://selinuxproject.org/w/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>XENStatements - Revision history</title>
		<link>http://selinuxproject.org/w/?title=XENStatements&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.10.4</generator>
		<lastBuildDate>Sun, 19 May 2013 17:24:03 GMT</lastBuildDate>
		<item>
			<title>RichardHaines: New page: = Xen Statements = Xen policy supports additional policy language statements: &lt;tt&gt;iomemcon&lt;/tt&gt;, &lt;tt&gt;ioportcon&lt;/tt&gt;, &lt;tt&gt;pcidevicecon&lt;/tt&gt; and &lt;tt&gt;pirqcon&lt;/tt&gt; that are discussed in the se...</title>
			<link>http://selinuxproject.org/w/?title=XENStatements&amp;diff=1302&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: = Xen Statements = Xen policy supports additional policy language statements: &amp;lt;tt&amp;gt;iomemcon&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ioportcon&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;pcidevicecon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pirqcon&amp;lt;/tt&amp;gt; that are discussed in the se...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Xen Statements =&lt;br /&gt;
Xen policy supports additional policy language statements: &amp;lt;tt&amp;gt;iomemcon&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ioportcon&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;pcidevicecon&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;pirqcon&amp;lt;/tt&amp;gt; that are discussed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
To compile these additional statements using &amp;lt;tt&amp;gt;'''semodule'''(8)&amp;lt;/tt&amp;gt;, ensure that the &amp;lt;tt&amp;gt;'''semanage.conf'''(5)&amp;lt;/tt&amp;gt; file has the &amp;lt;tt&amp;gt;policy-target=xen&amp;lt;/tt&amp;gt; entry.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== iomemcon Statement ==&lt;br /&gt;
The sid statement declares the actual SID identifier and is defined at the start of a policy source file.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iomemcon addr context;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| iomemcon&lt;br /&gt;
| The iomemcon keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| addr&lt;br /&gt;
| The memory address to apply the context. This may also be a range that consists of a start and end address separated by a hypen ('&amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;').&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| context&lt;br /&gt;
| The security context to be applied.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Monolithic Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Base Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Module Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Conditional Policy (if]) Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''optional Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''require Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iomemcon 0xfebd9 system_u:object_r:nicP_t;&lt;br /&gt;
&lt;br /&gt;
iomemcon 0xfebe0-0xfebff system_u:object_r:nicP_t;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== ioportcon Statement ==&lt;br /&gt;
The sid statement declares the actual SID identifier and is defined at the start of a policy source file.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ioportcon port context;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| ioportcon&lt;br /&gt;
| The ioportcon keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| port&lt;br /&gt;
| The port to apply the context. This may also be a range that consists of a start and end port number separated by a hypen ('&amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;').&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| context&lt;br /&gt;
| The security context to be applied.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Monolithic Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Base Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Module Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Conditional Policy (if]) Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''optional Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''require Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ioportcon 0xeac0 system_u:object_r:nicP_t;&lt;br /&gt;
&lt;br /&gt;
ioportcon 0xecc0-0xecdf system_u:object_r:nicP_t;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== pcidevicecon Statement ==&lt;br /&gt;
The sid statement declares the actual SID identifier and is defined at the start of a policy source file.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcidevicecon pci_id context;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| pcidevicecon&lt;br /&gt;
| The pcidevicecon keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| pci_id&lt;br /&gt;
| The PCI indentifer.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| context&lt;br /&gt;
| The security context to be applied.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Monolithic Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Base Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Module Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Conditional Policy (if]) Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''optional Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''require Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pcidevicecon 0xc800 system_u:object_r:nicP_t;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== pirqcon Statement ==&lt;br /&gt;
The sid statement declares the actual SID identifier and is defined at the start of a policy source file.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pirqcon irq context;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| pirqcon&lt;br /&gt;
| The pirqcon keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| irq&lt;br /&gt;
| The interrupt request number.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| context&lt;br /&gt;
| The security context to be applied.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Monolithic Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Base Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Module Policy'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;Yes&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Conditional Policy (if]) Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''optional Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''require Statement'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;No&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pirqcon 33 system_u:object_r:nicP_t;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Notebook]]&lt;/div&gt;</description>
			<pubDate>Mon, 19 Nov 2012 13:43:00 GMT</pubDate>			<dc:creator>RichardHaines</dc:creator>			<comments>http://selinuxproject.org/page/Talk:XENStatements</comments>		</item>
	</channel>
</rss>