mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Update apparmor.d man page to document file rules with leading permissions
Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
parent
6c5cf445c4
commit
c92b5c71e5
1 changed files with 14 additions and 1 deletions
|
@ -195,7 +195,7 @@ B<UNIX ATTR COND> 'attr' '=' ( I<AARE> | '(' '"' I<AARE> '"' | I<AARE> ')' )
|
|||
|
||||
B<UNIX OPT COND> 'opt' '=' ( I<AARE> | '(' '"' I<AARE> '"' | I<AARE> ')' )
|
||||
|
||||
B<FILE RULE> = [ I<QUALIFIERS> ] [ 'owner' ] [ 'file' ] ( '"' I<FILEGLOB> '"' | I<FILEGLOB> ) I<ACCESS> [ -E<gt> <EXEC TARGET> ] ','
|
||||
B<FILE RULE> = [ I<QUALIFIERS> ] [ 'owner' ] [ 'file' ] ( ( '"' I<FILEGLOB> '"' | I<FILEGLOB> ) I<ACCESS> | [I<ACCESS> ( '"' I<FILEGLOB> '"' | I<FILEGLOB> ) ) [ -E<gt> <EXEC TARGET> ] ','
|
||||
|
||||
B<FILEGLOB> = (must start with '/' (after variable expansion), B<AARE> have special meanings; see below. May include I<VARIABLE>. Rules with embedded spaces or tabs must be quoted. Rules must end with '/' to apply to directories.)
|
||||
|
||||
|
@ -513,6 +513,19 @@ on the new link, it must match the original file exactly.
|
|||
Allows the program to be able lock a file with this name. This permission
|
||||
covers both advisory and mandatory locking.
|
||||
|
||||
=item B<leading OR trailing access permissions>
|
||||
|
||||
File rules can be specified with the access permission either leading
|
||||
or trailing the file glob. Eg.
|
||||
|
||||
rw /**, # leading permissions
|
||||
|
||||
/** rw, # trailing permissions
|
||||
|
||||
When a leading permissions is used further rule options and context
|
||||
may be allowed, Eg.
|
||||
l /foo -> /bar, # lead 'l' link permission is equivalent to link rules
|
||||
|
||||
=back
|
||||
|
||||
=head2 Comments
|
||||
|
|
Loading…
Add table
Reference in a new issue