<table><tr><td style="">nibags created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />nibags requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10174" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>SELinux CIL Policies: <br />
The SELinux Common Intermediate Language (CIL) is a language for creating security policies. This is a recent language and is part of the official SELinux project.</p>

<p>More information:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item"><a href="https://github.com/SELinuxProject/cil/wiki" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/SELinuxProject/cil/wiki</a></li>
<li class="remarkup-list-item"><a href="https://github.com/SELinuxProject/selinux/tree/master/secilc/docs" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/SELinuxProject/selinux/tree/master/secilc/docs</a></li>
</ul>

<p>SELinux File Contexts files (File Labeling Policy):<br />
These contain the security contexts for paths/files. This highlighting applies to the following files:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">"file_contexts", "file_contexts.local", "file_contexts.template", "file_contexts.homedirs", "homedir_template": They are SELinux configuration files. They are usually stored in: /etc/selinux/targeted/contexts/. The file 'file_contexts' is also generated when compiling the CIL policy.</li>
<li class="remarkup-list-item">"*.fc": These files are part of the SELinux Reference Policy.</li>
</ul>

<p>The CIL syntax is very similar to the Scheme language, therefore, I used the bracket highlighting code of the Scheme XML file as a base (I even used the same bracket colors). At the beginning of the file I gave credits to the author of the Scheme file (Dominik Haumann), but I am not sure if this is the correct way.</p>

<p>Regards!</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>BRANCH</strong><div><div>add-selinux (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10174" rel="noreferrer">https://phabricator.kde.org/D10174</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/test.cil.fold<br />
autotests/folding/test.fc.fold<br />
autotests/html/test.cil.html<br />
autotests/html/test.fc.html<br />
autotests/input/test.cil<br />
autotests/input/test.fc<br />
autotests/reference/test.cil.ref<br />
autotests/reference/test.fc.ref<br />
data/syntax/selinux-cil.xml<br />
data/syntax/selinux-fc.xml</div></div></div><br /><div><strong>To: </strong>nibags<br /><strong>Cc: </strong>Frameworks, michaelh<br /></div>