D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-31 Thread Nibaldo González
nibags closed this revision.

REPOSITORY
  R216 Syntax Highlighting

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

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-31 Thread Nibaldo González
nibags updated this revision to Diff 40769.
nibags added a comment.


  - Small correction in a comment

REPOSITORY
  R216 Syntax Highlighting

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D15089?vs=40763=40769

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


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-31 Thread Nibaldo González
nibags updated this revision to Diff 40763.
nibags added a comment.


  - Update
  
  I checked the highlight in several policies and made some changes:
  
  - I verify that SELinux does not support multi-line strings (neither line 
continuation escapes).
  - Small improvements in the detection of MLS/MCS Levels.
  - Added "#line" of M4  (appears in the parser 
and I forgot to add).
  
  The file is OK. If there is no problem, I will do commit.

REPOSITORY
  R216 Syntax Highlighting

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D15089?vs=40492=40763

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


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-28 Thread Nibaldo González
nibags added a comment.


  I'll do the commit this week, because I want to do a last test...

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  add-selinux

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

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-27 Thread Nibaldo González
nibags updated this revision to Diff 40492.
nibags added a comment.


  - Remove depreciated permissions (7 keywords)

REPOSITORY
  R216 Syntax Highlighting

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D15089?vs=40472=40492

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


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-26 Thread Christoph Cullmann
cullmann accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  add-selinux

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

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-26 Thread Nibaldo González
nibags edited the summary of this revision.

REPOSITORY
  R216 Syntax Highlighting

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

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-26 Thread Nibaldo González
nibags added a dependent revision: D11945: Improve highlighting of SELinux CIL 
policies & file contexts.

REPOSITORY
  R216 Syntax Highlighting

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

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-26 Thread Nibaldo González
nibags edited the summary of this revision.

REPOSITORY
  R216 Syntax Highlighting

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

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D15089: Add syntax highlighting for SELinux kernel policy language

2018-08-26 Thread Nibaldo González
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  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