Code Monkey home page Code Monkey logo

vscode-apparmor's Introduction

vscode-apparmor

VS Extension to integrate AppArmor into Visual Studio Code.

Features

  • Syntax highlighting
  • Snippets for creating new
    • Network rules
    • Alias rules
    • Deny/Allow file rules
    • Audit rules
    • Empty policy files
  • Highlighting of dangerous capabilities

How to use

To enable this extension, set the current language to AppArmor.

Here's an example of a rsyslogd profile being highlighted by this extension:

AppArmor Resources

Whilst using this extension you may find interesting the resources below to help create and maintain your apparmor profiles:

vscode-apparmor's People

Contributors

pjbgf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-apparmor's Issues

Auto detect apparmor files based on vim syntax comments

Example found on Ubuntu 19.10

head /etc/apparmor.d/abstractions/ubuntu-browsers.d/user-files

# vim:syntax=apparmor

  # Allow read to all files user has DAC access to and write access to all
  # files owned by the user in $HOME.
  @{HOME}/ r,
  @{HOME}/** r,
  owner @{HOME}/** w,

  # Do not allow read and/or write to particularly sensitive/problematic files
  #include <abstractions/private-files>

Reacting to these comments would add some convenience (when often viewing AppArmor profiles), because currently one has to press {Ctrl} + {K}, {M} type 'aa' and press {Enter} to set the language to AppArmor.

Publish to Open VSX

Open VSX is an open source extensions registry for VSCode-based editors. It's really easy to publish to Open VSX as well. Here is their wiki guide. Also this could be related to #1 as there is a github action which makes it easy to publish to both registries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.