secilc CIL Reference Guide patches
Please find attached three patches:
1) This updates the CIL Reference Guide to reflect all your recent changes.
These patches are from Dominick:
2) Fix the defaulttype title - This needs to be applied after the first patch.
3) Update .gitignore to ignore the build docs directories.
Richard
From 33be49a7ecb7b67d0c249276608e922ec86be4f3 Mon Sep 17 00:00:00 2001
From: Richard Haines <[email protected]>
Date: Thu, 22 May 2014 15:55:21 +0100
Subject: [PATCH] secilc: Update CIL Reference Guide
Updated classmap/classmapping, added classmap to statements that utilise class_id's (defaultuser, typetransition etc.), update various examples to show anonymous classpermissionset's using expressions.
--- docs/CIL_Reference_Guide.xml | 8 ++-- docs/cil_access_vector_rules.xml | 50 +++++++++------------- docs/cil_class_and_permission_statements.xml | 61 +++++++++++++++------------ docs/cil_constraint_statements.xml | 8 ++-- docs/cil_container_statements.xml | 1 - docs/cil_default_object_statements.xml | 62 ++++++++++++++++++++-------- docs/cil_mls_labeling_statements.xml | 2 +- docs/cil_role_statements.xml | 2 +- docs/cil_type_statements.xml | 6 +-- 9 files changed, 113 insertions(+), 87 deletions(-)
docs/CIL_Reference_Guide.xml +4 -4
@@ -29,9 +29,9 @@ <title>Common Interface Language (CIL) Reference Guide</title> <revhistory> <revision> - <revnumber>0.1</revnumber> - <date>13th May '14</date> - <revremark>First Draft</revremark> + <revnumber>0.2</revnumber> + <date>22nd May '14</date> + <revremark>Updated classmap/classmapping, added classmap to statements that utilise class_id's (defaultuser, typetransition etc.), update various examples to show anonymous classpermissionset's using expressions.</revremark> </revision> </revhistory> </articleinfo>
@@ -39,7 +39,7 @@ <sect1> <title>CIL Information</title> <orderedlist> - <listitem><para>The statement definitions are those found in the source from: <literal>git clone <ulink url="https://bitbucket.org/jwcarter/secilc.git"></ulink></literal> dated 6th May '14.</para></listitem> + <listitem><para>The statement definitions are those found in the source from: <literal>git clone <ulink url="https://bitbucket.org/jwcarter/secilc.git"></ulink></literal> dated 21st May '14.</para></listitem> <listitem><para>Not all possible alternate statement permutations are shown, however there should be enough variation to work out any other valid formats. There is also an example <filename>policy.cil</filename> file shown in the <link linkend="example_policy">Appendix</link>.</para></listitem> <listitem><para>The MLS components on contexts and user statements must be declared even if the policy does not support MCS/MLS. </para></listitem> <listitem><para>The CIL compiler will not build a policy unless it also has as a minimum: one <literal><link linkend="allow">allow</link></literal> rule, one <literal><link linkend="sid">sid</link></literal>, <literal><link linkend="sidorder">sidorder</link></literal> and <literal><link linkend="sidcontext">sidcontext</link></literal> statement. </para></listitem>
docs/cil_access_vector_rules.xml +20 -30
102 lines not on this page · raw message
docs/cil_class_and_permission_statements.xml +35 -26
86 lines not on this page · raw message
docs/cil_constraint_statements.xml +4 -4
@@ -27,7 +27,7 @@ <para><literal>classpermissionset_id</literal></para> </entry> <entry> - <para>One or more named or anonymous <literal><link linkend="classpermissionset">classpermissionset</link></literal>'s or pairs of <literal><link linkend="classmap">classmap</link></literal>/<literal><link linkend="classmapping">classmapping</link></literal> identifiers.</para> + <para>A single named or anonymous <literal><link linkend="classpermissionset">classpermissionset</link></literal> or a single set of <literal><link linkend="classmap">classmap</link></literal>/<literal><link linkend="classmapping">classmapping</link></literal> identifiers.</para> </entry> </row> <row>
@@ -126,7 +126,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
@@ -206,7 +206,7 @@ <para><literal>classpermissionset_id</literal></para> </entry> <entry> - <para>One or more named or anonymous <literal><link linkend="classpermissionset">classpermissionset</link></literal>'s or pairs of <literal><link linkend="classmap">classmap</link></literal>/<literal><link linkend="classmapping">classmapping</link></literal> identifiers.</para> + <para>A single named or anonymous <literal><link linkend="classpermissionset">classpermissionset</link></literal> or a single set of <literal><link linkend="classmap">classmap</link></literal>/<literal><link linkend="classmapping">classmapping</link></literal> identifiers.</para> </entry> </row> <row>
@@ -298,7 +298,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
docs/cil_container_statements.xml +0 -1
@@ -275,7 +275,6 @@ </entry> <entry> <para><literal><link linkend="typetransition">typetransition</link></literal></para> - <simpara>(excluding 'file name transition' rule)</simpara> </entry> </row> </tbody>
docs/cil_default_object_statements.xml +45 -17
129 lines not on this page · raw message
docs/cil_mls_labeling_statements.xml +1 -1
@@ -690,7 +690,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single previously declared <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
docs/cil_role_statements.xml +1 -1
@@ -289,7 +289,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single previously declared <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
docs/cil_type_statements.xml +3 -3
@@ -341,7 +341,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single previously declared <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
@@ -412,7 +412,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single previously declared <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
@@ -483,7 +483,7 @@ <para><literal>class_id</literal></para> </entry> <entry> - <para>A single previously declared <literal><link linkend="class">class</link></literal> identifier.</para> + <para>A single previously declared <literal><link linkend="class">class</link></literal> or <literal><link linkend="classmap">classmap</link></literal> identifier.</para> </entry> </row> <row>
Signature · 1 line
1.9.0
From 90e554950412268923900bc0b4c42c58537066ca Thu, 15 May 2014 17:32:07 +0200
From: Dominick Grift <[email protected]>
Date: Thu, 15 May 2014 17:29:34 +0200
Subject: [PATCH] Fix copy and paste error
docs/cil_default_object_statements.xml +1 -1
@@ -91,7 +91,7 @@ </sect2> <sect2 id="defaulttype"> - <title>defaultuser</title> + <title>defaulttype</title> <para>Allows the default type to be taken from the source or target context when computing a new context for the object <literal><link linkend="class">class</link></literal> identifier. Requires policy version 28.</para> <para><emphasis role="bold">Statement definition:</emphasis></para> <programlisting><![CDATA[(defaulttype class_list default)]]></programlisting>
From 41ebb72a9c012ac660fa469019b8e8a35bc4e92b Thu, 15 May 2014 17:31:59 +0200
From: Dominick Grift <[email protected]>
Date: Thu, 15 May 2014 17:28:39 +0200
Subject: [PATCH] Ignore docs/{html,pdf,man8}/
.gitignore +3 -0
@@ -5,3 +5,6 @@ src/cil_lexer.c unit_tests cov + docs/pdf/ + docs/html/ + docs/man8/
--
Thanks! I've merged these three patches.
Jim
Quoted 12 lines · Richard Haines
Please find attached three patches:
1) This updates the CIL Reference Guide to reflect all your recent changes.
These patches are from Dominick:
2) Fix the defaulttype title - This needs to be applied after the first patch.
3) Update .gitignore to ignore the build docs directories.
Richard
Signature · 2 lines
James Carter <[email protected]> National Security Agency