
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://selinuxproject.org/w/skins/common/feed.css?63"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://selinuxproject.org/w/?title=DefaultRules&amp;action=history&amp;feed=atom</id>
		<title>DefaultRules - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://selinuxproject.org/w/?title=DefaultRules&amp;action=history&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://selinuxproject.org/w/?title=DefaultRules&amp;action=history"/>
		<updated>2013-05-20T06:09:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.10.4</generator>

	<entry>
		<id>http://selinuxproject.org/w/?title=DefaultRules&amp;diff=1297&amp;oldid=prev</id>
		<title>RichardHaines: New page: = Default Rules = These rules allow a default user, role, type and/or range to be used when computing a context for a new object. These require policy version 27 or 28 with kernels 3.5 or ...</title>
		<link rel="alternate" type="text/html" href="http://selinuxproject.org/w/?title=DefaultRules&amp;diff=1297&amp;oldid=prev"/>
				<updated>2012-11-18T14:44:09Z</updated>
		
		<summary type="html">&lt;p&gt;New page: = Default Rules = These rules allow a default user, role, type and/or range to be used when computing a context for a new object. These require policy version 27 or 28 with kernels 3.5 or ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Default Rules =&lt;br /&gt;
These rules allow a default user, role, type and/or range to be used when computing a context for a new object. These require policy version 27 or 28 with kernels 3.5 or greater.&lt;br /&gt;
&lt;br /&gt;
== default_user Rule ==&lt;br /&gt;
Allows the default user to be taken from the source or target context when computing a new context for an object of the defined class. Requires policy version 27.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default_user class default;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| default_user&lt;br /&gt;
| The default_user rule keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| One or more class identifiers. Multiple entries consist of a space separated list enclosed in braces ({}). &lt;br /&gt;
&lt;br /&gt;
Entries can be excluded from the list by using the negative operator (-).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| default&lt;br /&gt;
| A single keyword consisting of either &amp;lt;tt&amp;gt;source&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;target&amp;lt;/tt&amp;gt; that will state whether the default user should be obtained from the source or target context.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
&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;
&amp;lt;nowiki&amp;gt;# When computing the context for a new file object, the user&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# will be obtained from the target context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_user file target;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# When computing the context for a new x_selection or x_property&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# object, the user will be obtained from the source context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_user { x_selection x_property } source;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== default_role Rule ==&lt;br /&gt;
Allows the default role to be taken from the source or target context when computing a new context for an object of the defined class. Requires policy version 27.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default_role class default;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| default_role&lt;br /&gt;
| The default_role rule keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| One or more class identifiers. Multiple entries consist of a space separated list enclosed in braces ({}). &lt;br /&gt;
&lt;br /&gt;
Entries can be excluded from the list by using the negative operator (-).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| default&lt;br /&gt;
| A single keyword consisting of either &amp;lt;tt&amp;gt;source&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;target&amp;lt;/tt&amp;gt; that will state whether the default role should be obtained from the source or target context.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
&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;
&amp;lt;nowiki&amp;gt;# When computing the context for a new file object, the role&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# will be obtained from the target context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_role file target;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# When computing the context for a new x_selection or x_property&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# object, the role will be obtained from the source context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_role { x_selection x_property } source;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== default_type Rule ==&lt;br /&gt;
Allows the default type to be taken from the source or target context when computing a new context for an object of the defined class. Requires policy version 28.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default_type class default;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| default_type&lt;br /&gt;
| The default_type rule keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| One or more class identifiers. Multiple entries consist of a space separated list enclosed in braces ({}). &lt;br /&gt;
&lt;br /&gt;
Entries can be excluded from the list by using the negative operator (-).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| default&lt;br /&gt;
| A single keyword consisting of either &amp;lt;tt&amp;gt;source&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;target&amp;lt;/tt&amp;gt; that will state whether the default type should be obtained from the source or target context.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
&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;
&amp;lt;nowiki&amp;gt;# When computing the context for a new file object, the type&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# will be obtained from the target context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_type file target;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# When computing the context for a new x_selection or x_property&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# object, the type will be obtained from the source context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_type { x_selection x_property } source;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== default_range Rule ==&lt;br /&gt;
Allows the default range or level to be taken from the source or target context when computing a new context for an object of the defined class. Requires policy version 27.&lt;br /&gt;
&lt;br /&gt;
'''The statement definition is:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default_range class default entry;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| default_range&lt;br /&gt;
| The default_range rule keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| class&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| One or more class identifiers. Multiple entries consist of a space separated list enclosed in braces ({}). &lt;br /&gt;
&lt;br /&gt;
Entries can be excluded from the list by using the negative operator (-).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| default&lt;br /&gt;
| A single keyword consisting of either &amp;lt;tt&amp;gt;source&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;target&amp;lt;/tt&amp;gt; that will state whether the default level or range should be obtained from the source or target context.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| entry&lt;br /&gt;
| A single keyword consisting of either: &amp;lt;tt&amp;gt;low&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;high&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;low_high&amp;lt;/tt&amp;gt; that will state whether the default level or range should be obtained from the source or target context.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statement is valid in:'''&lt;br /&gt;
&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;
&amp;lt;nowiki&amp;gt;# When computing the context for a new file object, the lower&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# level will be taken from the target context range.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_range file target low;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# When computing the context for a new x_selection or x_property&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# object, the range will be obtained from the source context.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
default_type { x_selection x_property } source low_high;&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;</summary>
		<author><name>RichardHaines</name></author>	</entry>

	</feed>