AppArmor: new keywords, improvements & fixes

Authored by nibags on Jan 28 2018, 11:03 AM.

Description

AppArmor: new keywords, improvements & fixes

Summary:
Update the syntax highlighting of AppArmor, after the release of AppArmor 2.12.0. In summary, in this update new keywords are added and the code is revised and improved.

Changes:

  • Added missing keywords in flags and network and mount rules. Keywords 'read' and 'write' are placed in the 'base_accesses' list.
  • Added keywords for default abstractions & variables, included in the provided AppArmor policy. The purpose of these is to provide autocomplete suggestions when writing Include rules and variables.
  • Fixes: Comments not allowed within rules and in variable assignment lines. The keywords are sensitive. 'Owner' qualifier is not associated with the file rule.
  • General improvements in the highlighting of Include rules, variables, rlimit rules, file permissions and globbing. The code of the profile names, the transition rules and the end of rules context is simplified.

Regards!

Reviewers: Framework: Syntax Highlighting, dhaumann

Reviewed By: Framework: Syntax Highlighting, dhaumann

Subscribers: dhaumann, Framework: Syntax Highlighting, Frameworks

Tags: Frameworks, Framework: Syntax Highlighting

Differential Revision: https://phabricator.kde.org/D10136

Details

Committed
dhaumannJan 28 2018, 11:09 AM
Reviewer
Framework: Syntax Highlighting
Differential Revision
D10136: AppArmor: new keywords, improvements & fixes
Parents
R216:88ef85457c03: GIT_SILENT Upgrade KF5 version to 5.43.0.
Branches
Unknown
Tags
Unknown