
<?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=SIDStatements&amp;action=history&amp;feed=atom</id>
		<title>SIDStatements - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://selinuxproject.org/w/?title=SIDStatements&amp;action=history&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://selinuxproject.org/w/?title=SIDStatements&amp;action=history"/>
		<updated>2013-06-20T09:31:38Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.10.4</generator>

	<entry>
		<id>http://selinuxproject.org/w/?title=SIDStatements&amp;diff=1022&amp;oldid=prev</id>
		<title>Jaxelson: /* Security ID (SID) Statement */ added a link for security context</title>
		<link rel="alternate" type="text/html" href="http://selinuxproject.org/w/?title=SIDStatements&amp;diff=1022&amp;oldid=prev"/>
				<updated>2010-09-10T22:25:01Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Security ID (SID) Statement -&lt;/span&gt; added a link for security context&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;Revision as of 22:25, 10 September 2010&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 1:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 1:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;= Security ID (SID) Statement =&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;= Security ID (SID) Statement =&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;There are two SID statements, the first one declares the actual SID identifier and is defined at the start of a policy source file. The second statement is used to add an initial security context to the SID that is used when SELinux initialises or as a default if an object is not labeled correctly. The Building a Basic Policy section shows their usage.&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;There are two SID statements, the first one declares the actual SID identifier and is defined at the start of a policy source file. The second statement is used to add an initial &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;security context&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;to the SID that is used when SELinux initialises or as a default if an object is not labeled correctly. The Building a Basic Policy section shows their usage.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;== sid Statement ==&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;== sid Statement ==&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jaxelson</name></author>	</entry>

	<entry>
		<id>http://selinuxproject.org/w/?title=SIDStatements&amp;diff=853&amp;oldid=prev</id>
		<title>RichardHaines: New page: = Security ID (SID) Statement = There are two SID statements, the first one declares the actual SID identifier and is defined at the start of a policy source file. The second statement is ...</title>
		<link rel="alternate" type="text/html" href="http://selinuxproject.org/w/?title=SIDStatements&amp;diff=853&amp;oldid=prev"/>
				<updated>2009-11-30T14:52:06Z</updated>
		
		<summary type="html">&lt;p&gt;New page: = Security ID (SID) Statement = There are two SID statements, the first one declares the actual SID identifier and is defined at the start of a policy source file. The second statement is ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Security ID (SID) Statement =&lt;br /&gt;
There are two SID statements, the first one declares the actual SID identifier and is defined at the start of a policy source file. The second statement is used to add an initial security context to the SID that is used when SELinux initialises or as a default if an object is not labeled correctly. The Building a Basic Policy section shows their usage.&lt;br /&gt;
&lt;br /&gt;
== sid 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;
sid sid_id&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|sid&lt;br /&gt;
|The sid keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|sid_id&lt;br /&gt;
|The sid identifier. Note that there is no terminating '&amp;lt;nowiki&amp;gt;;&amp;lt;/nowiki&amp;gt;'.&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;
This example has been taken from the Reference Policy source ../policy/flask/initial_sids file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# This example was taken from the&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# ./policy/flask/initial_sids file and &amp;lt;/nowiki&amp;gt;declares some &lt;br /&gt;
&amp;lt;nowiki&amp;gt;# of the initial SIDs:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sid kernel&lt;br /&gt;
sid security&lt;br /&gt;
sid unlabeled&lt;br /&gt;
sid fs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== sid context Statement ==&lt;br /&gt;
The sid context statement is used to add an initial security context to the SID that is used when SELinux initialises, or as a default if an object is not labeled correctly.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sid sid_id context&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Where:'''&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|sid&lt;br /&gt;
|The sid keyword.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|sid_id&lt;br /&gt;
|The previously declared sid identifier. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|context&lt;br /&gt;
|The initial security context associated with the SID. Note that there is no terminating '&amp;lt;nowiki&amp;gt;;&amp;lt;/nowiki&amp;gt;'.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The statements are 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;
'''Examples:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# These statements add an initial security context to an object &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# that is used when SELinux initialises or as a default if a&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# context is not available or labeled incorrectly. &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# This one is from a targeted policy:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sid unlabeled system_u:object_r:unlabeled_t&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# This one is from an MLS policy. Note that the security level is&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# set to SystemHigh as it may need to label any object in the&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# system.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
sid unlabeled system_u:object_r:unlabeled_t:s15:c0.c255 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>RichardHaines</name></author>	</entry>

	</feed>