<table><tr><td style="">nibags created this revision.<br />nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<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/D15089">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Add syntax highlighting for SELinux policies:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">SELinux Type Enforcement (*.te)</li>
<li class="remarkup-list-item">SELinux Interface File (*.if)</li>
<li class="remarkup-list-item"><a href="https://phabricator.kde.org/M4" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">M4</a> Macros of Reference Policy (*.spt)</li>
<li class="remarkup-list-item">Some policy build files and policy config. files (access_vectors, mls, mcs, mls_macros, te_macros, policy_capabilities, seapp_contexts, port_contexts), and monolithic policy (policy.conf). NOTE: I added only relevant configuration files and policy building, since many have very generic names.</li>
</ul>
<p>This corresponds to the standard policy language of SELinux [1], used for example, by the SELinux Reference Policy [2] or the Android policies [3][4].</p>
<p>Also, this file contains common rules and keywords between <tt style="background: #ebebeb; font-size: 13px;">selinux-fc.xml</tt> and <tt style="background: #ebebeb; font-size: 13px;">selinux-cil.xml</tt>. For example, it contains the RegExp highlighting and the Permissions keywords. The idea is to avoid having repeated keywords and rules between the SELinux highlighting files.</p>
<p><strong>References:</strong><br />
[1] SELinux Wiki. PolicyLanguage: <a href="https://selinuxproject.org/page/PolicyLanguage#Kernel_Policy_Language" class="remarkup-link" target="_blank" rel="noreferrer">https://selinuxproject.org/page/PolicyLanguage#Kernel_Policy_Language</a><br />
[2] SELinux Reference Policy: <a href="https://github.com/SELinuxProject/refpolicy/wiki" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/SELinuxProject/refpolicy/wiki</a><br />
[3] Security-Enhanced Linux in Android: <a href="https://source.android.com/security/selinux/" class="remarkup-link" target="_blank" rel="noreferrer">https://source.android.com/security/selinux/</a><br />
[4] SELinux policy configuration for AOSP: <a href="https://android.googlesource.com/platform/system/sepolicy/" class="remarkup-link" target="_blank" rel="noreferrer">https://android.googlesource.com/platform/system/sepolicy/</a></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</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15089">https://phabricator.kde.org/D15089</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/folding/test.te.fold<br />
autotests/html/test.te.html<br />
autotests/input/test.te<br />
autotests/reference/test.te.ref<br />
data/syntax/selinux.xml</div></div></div><br /><div><strong>To: </strong>nibags, Framework: Syntax Highlighting, dhaumann, cullmann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>