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
, thenNew remote site
- Enter "
http://www.tresys.com/files/eclipse-update/
" as URL, clickFinish
. - 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 endif