1
0
mirror of https://github.com/HorlogeSkynet/AppArmor.git synced 2024-12-03 16:00:11 +01:00
💄 [MIRROR] A Sublime Text 3+ syntax definition for your AppArmor profiles https://github.com/HorlogeSkynet/AppArmor
Go to file
Samuel FORESTIER bad72a7876 Fixes typo
2023-01-07 11:19:59 +01:00
.github Initial commit 2022-10-27 10:44:30 +02:00
.gitattributes Exclude syntax test files from package 2022-10-27 11:09:32 +02:00
AppArmor.sublime-build Initial commit 2022-10-27 10:44:30 +02:00
AppArmor.sublime-syntax Fixes typo 2023-01-07 11:19:59 +01:00
CHANGELOG.md Exclude syntax test files from package 2022-10-27 11:09:32 +02:00
Comments.tmPreferences Initial commit 2022-10-27 10:44:30 +02:00
LICENSE Initial commit 2022-10-27 10:44:30 +02:00
README.md Plugin now available on Package Control ! 2022-12-06 21:44:05 +01:00
syntax_test_AppArmor.apparmor.profile Initial commit 2022-10-27 10:44:30 +02:00

AppArmor

A Sublime Text 3+ syntax definition for your AppArmor profiles

Preview

Introduction

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.

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.

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... 🎉

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 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 ?).

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 publicly maintained by @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.