Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>SELinuxHelperNew to Visual Studio Code? Get it now.

SELinuxHelper

SELinuxHelper

|
16 installs
| (0) | Free
Syntax Highlighting for SELinux Policy Files (.fc, .if, .spt, .te)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SElinuxhelper README

SELinux Penguin

SElinuxhelper is a VS Code exentsion that allows syntax highlighting for various types of SELinux files.

The following are the supported file types: .te, .if, .fc, and .spt.

Features

Comment Highlighting

Comments in all files are colored green.

Example:

SELinux Comments

.te Syntax Highlighting

For .te files, the following are the colors for each file specific blocks of code:

  • gen_require, type, and alias are colored blue.
  • dev_node is colored purple.
  • Parenthesis for gen_require and dev_node are colored yellow.

Example:

SELinux te

.if Syntax Highlighting

For .if files, the following are the colors for each file specific blocks of code:

  • interface, gen_require, type, and allow are colored blue.

Example:

SELinux if

.fc Syntax Highlighting

For .fc files, the following are the colors for each file specific blocks of code:

  • gen_context is colored blue.
  • Parenthesis for gen_context are colored yellow.

Example:

SELinux fc

.spt Syntax Highlighting

For .spt files, the following are the colors for each file specific blocks of code:

  • define is colored blue.
  • Parenthesis for define and backticks not surrounding brackets are colored yellow.
  • Brackets and backticks surrounding those brackets are colored pink.

Example:

SELinux spt

Requirements

No additional requirements for this extension.

Extension Settings

No additional extension settings for this extension.

Release Notes

0.0.2

Initial prerelease of SeLinuxhelper.

Credits

Developed by Sophia Boisvert, Easton Anderlik, Pranav Pradeep, Matt McCoy, Trevor Tomer, and Zeal Bhatt.

SELinux Logo used under the Creative Commons ShareAlike 2.5 license. Credit to Máirín Duffy.

Link to License: https://creativecommons.org/licenses/by-sa/2.5/

Link to Artist: https://www.deviantart.com/pookstar/gallery

Link to Selinux page: https://selinuxproject.org/

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft