User-friendly SELinux policy editing in vim or Eclipse (using SLIDE)

SLIDE screenshot
SELinux file in vim

After you have installed a minimum SELinux setup in QEMU, you might want to tweak and edit the policy to fit your needs.

A nice, graphical method to do so is to use SLIDE, written by Tresys (and released under the terms of the GPL). SLIDE is an Eclipse (>= 3.1) plugin, which you can install easily:

  • Click Help->Software Updates->Find and install...
  • Click Search for new features to install, then New remote site
  • Enter "" as URL, click Finish.
  • After that, select the new entry, and install SLIDE (will restart Eclipse).

Of course, you can also easily use your favourite text-editor to edit the plain policy files (if you use the te.vim file from Thomas Bleher you get syntax highlighting, at least for *.te files). After placing the file in the ~/.vim/syntax directory, add this to your ~/.vimrc:

if has("autocmd")
  filetype plugin on
  augroup te
    autocmd BufRead,BufNewFile          *.te set filetype=te
  augroup END
Syndicate content