A Sublime Text 3+ syntax definition for your AppArmor profiles
AppArmor is a Linux kernel module implementing a mandatory access control (MAC), which allows system administrators to confine their applications by writing intelligible plain text profiles.
This project aims to provide a "basic" profile syntax definition for Sublime Text.
- Open your command palette and type in :
Package Control: Install Package
- Browse the list or search for
AppArmor
- Press
Enter
and you're done !
Package Control dedicated page here.
- Go to the Sublime Text packages folder (usually
$HOME/.config/sublime-text/Packages/
or%AppData%\Sublime Text\Packages\
) - Clone this repository there :
git clone https://github.com/HorlogeSkynet/AppArmor.git
- Restart Sublime Text and... 🎉
-
Open your command palette and type in :
Set Syntax: AppArmor
-
Click on the bottom-right corner :
AppArmor
-
View > Syntax > AppArmor
-
Open your command palette and type in :
Build With: AppArmor
-
Press
CTRL + B
-
Tools > Build
No, but feel free to contribute.
Well, sorry to hear that. Grammar wasn't my favorite course at school.
I'd be pleased to review any issue or pull request.
Why didn't you convert the official Yacc parser to Sublime's definition syntax ?
It looks like such a tool does not exist (yet ?).
No, but I would advise you to read a full set of AppArmor profiles publicly maintained by @roddhjav.
Of course, open the
AppArmor.sublime-syntax
file, pressCTRL + Shift + B
and chooseBuild With: Syntax Tests
.