From 5d6af299ba9e66ce5c30cdd680e330cbb4978d35 Mon Sep 17 00:00:00 2001 From: Seth Arnold Date: Fri, 10 Nov 2006 12:47:28 +0000 Subject: [PATCH] modify the instructions to match the new vim package for opensuse 10.2; remove the specific color descriptions; there are now enough colors/combinations that a strict listing wouldn't be very useful any more --- docs/apparmor.vim.pod | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/docs/apparmor.vim.pod b/docs/apparmor.vim.pod index 366a9e19f..6f84ed328 100644 --- a/docs/apparmor.vim.pod +++ b/docs/apparmor.vim.pod @@ -28,19 +28,13 @@ apparmor.vim - vim syntax highlighting file for AppArmor profiles =head1 SYNOPSIS -To automatically use the apparmor.vim syntax highlighting in vim, place -the following lines in your ~/.vimrc file: - - autocmd BufNewFile,BufRead /etc/apparmor.d/* set syntax=apparmor - autocmd BufNewFile,BufRead */sdprofiles/* set syntax=apparmor - autocmd BufNewFile,BufRead */codomain-*/*/* set syntax=apparmor - - syntax on - -If you wish to use the profile in a specific vim session, you may run: +The SUSE vim package is configured to automatically use syntax +highlighting for AppArmor policies stored in /etc/apparmor.d/ and the +extra policies stored in /etc/apparmor/profiles/extras/. If you wish to +use the syntax highlighting in a specific vim session, you may run: :syntax on - :set syntax=apparmor + :setf apparmor =head1 DESCRIPTION @@ -48,18 +42,15 @@ B provides syntax highlighting rules for the vim(1) text editor; the rules provide an easy visual method to inspect AppArmor profiles for syntax correctness and semantics. -The most useful colors provided are I for C -access, I for C access, and I for C access. - -=head1 FILES - -F +The colors indicate the relative severity of granting a specific set of +privileges. Ranking access with colors is necessarily generic and vague, +but it may help you understand your profiles better. =head1 BUGS -B does not currently parse correctly files that are -#include'd or hats (see change_hat(2)). Patches accepted. If you find -any bugs, please report them to bugzilla at L. +B does not properly detect dark versus light backgrounds. +Patches accepted. If you find any bugs, please report them to bugzilla +at L. =head1 SEE ALSO