https://github.com/horlogeskynet/apparmor
:lipstick: A Sublime Text 3+ syntax definition for your AppArmor profiles
https://github.com/horlogeskynet/apparmor
apparmor apparmor-profile package-control sublime-syntax sublime-text sublime-text-3 sublime-text-4 sublime-text-plugin syntax-highlighting
Last synced: 7 months ago
JSON representation
:lipstick: A Sublime Text 3+ syntax definition for your AppArmor profiles
- Host: GitHub
- URL: https://github.com/horlogeskynet/apparmor
- Owner: HorlogeSkynet
- License: gpl-3.0
- Created: 2022-10-27T08:45:46.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:20:06.000Z (over 2 years ago)
- Last Synced: 2025-01-18T16:20:36.670Z (9 months ago)
- Topics: apparmor, apparmor-profile, package-control, sublime-syntax, sublime-text, sublime-text-3, sublime-text-4, sublime-text-plugin, syntax-highlighting
- Language: YAML
- Homepage: https://packagecontrol.io/packages/AppArmor
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# AppArmor
> A Sublime Text 3+ syntax definition for your AppArmor profiles

## Introduction
[AppArmor](https://apparmor.net/) 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.## Installation
### With Package Control
1. Open your command palette and type in : `Package Control: Install Package`
2. Browse the list or search for `AppArmor`
3. Press `Enter` and you're done !Package Control dedicated page [here](https://packagecontrol.io/packages/AppArmor).
### Manually
1. Go to the Sublime Text packages folder (usually `$HOME/.config/sublime-text/Packages/` or `%AppData%\Sublime Text\Packages\`)
2. Clone this repository there : `git clone https://github.com/HorlogeSkynet/AppArmor.git`
3. Restart Sublime Text and... :tada:## Usage
### Syntax
* Open your command palette and type in : `Set Syntax: AppArmor`
* Click on the bottom-right corner : `AppArmor`
* `View > Syntax > AppArmor`
### Build
* Open your command palette and type in : `Build With: AppArmor`
* Press `CTRL + B`
* `Tools > Build`
## Frequently Asked Questions
### Do you plan to support the _whole_ AppArmor syntax ?
> No, but feel free to contribute.
### Why does this syntax coloration s\*cks ?
> Well, sorry to hear that. Grammar wasn't my favorite course at school.
> I'd be pleased to review any [issue](https://github.com/HorlogeSkynet/AppArmor/issues/new) or pull request.### Why didn't you convert the [official Yacc parser](https://gitlab.com/apparmor/apparmor/-/blob/master/parser/parser_yacc.y) to [Sublime's definition syntax](https://www.sublimetext.com/docs/syntax.html) ?
> [It looks like](https://forum.sublimetext.com/t/convert-bnf-yacc-grammar-definition-to-syntax-package/15980) such a tool does not exist (yet ?).
### Would this plugin help me write a secure AppArmor profile for my application ?
> No, but I would advise you to read [a full set of AppArmor profiles](https://github.com/roddhjav/apparmor.d) publicly maintained by [@roddhjav](https://github.com/roddhjav).
### I've noticed you got an extensive tests suite, can I run it ?
> Of course, open the `AppArmor.sublime-syntax` file, press `CTRL + Shift + B` and choose `Build With: Syntax Tests`.