D15089: Add syntax highlighting for SELinux kernel policy language

Nibaldo González noreply at phabricator.kde.org
Sun Aug 26 17:13:22 BST 2018


nibags created this revision.
nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
nibags requested review of this revision.

REVISION SUMMARY
  Add syntax highlighting for SELinux policies:
  
  - SELinux Type Enforcement (*.te)
  - SELinux Interface File (*.if)
  - M4 <https://phabricator.kde.org/M4> Macros of Reference Policy (*.spt)
  - 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.
  
  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].
  
  Also, this file contains common rules and keywords between `selinux-fc.xml` and `selinux-cil.xml`. 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.
  
  **References:**
  [1] SELinux Wiki. PolicyLanguage: https://selinuxproject.org/page/PolicyLanguage#Kernel_Policy_Language
  [2] SELinux Reference Policy: https://github.com/SELinuxProject/refpolicy/wiki
  [3] Security-Enhanced Linux in Android: https://source.android.com/security/selinux/
  [4] SELinux policy configuration for AOSP: https://android.googlesource.com/platform/system/sepolicy/

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  add-selinux

REVISION DETAIL
  https://phabricator.kde.org/D15089

AFFECTED FILES
  autotests/folding/test.te.fold
  autotests/html/test.te.html
  autotests/input/test.te
  autotests/reference/test.te.ref
  data/syntax/selinux.xml

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180826/d083bc95/attachment-0001.html>


More information about the KWrite-Devel mailing list