ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

App​Armor

by HorlogeSkynet ST3

:lipstick: A Sublime Text 3+ syntax definition for your AppArmor profiles

Details

Installs

  • Total 51
  • Win 28
  • Mac 13
  • Linux 10
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Mac 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

AppArmor

A Sublime Text 3+ syntax definition for your AppArmor profiles

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… :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 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.