mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge from trunk revision 1578: document audit, deny and owner rule
qualifiers (LP: #349049) Nominated-by: Jamie Strandboge <jamie@canonical.com> Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
parent
d34b3d0d7f
commit
e66c163042
1 changed files with 27 additions and 1 deletions
|
@ -74,7 +74,9 @@ B<PROGRAM> = (non-whitespace characters except for '^', must start with '/'. Emb
|
|||
|
||||
B<PROGRAMHAT> = '^' (non-whitespace characters; see change_hat(2) for a description of how this "hat" is used.)
|
||||
|
||||
B<FILE RULE> = ( '"' I<FILEGLOB> '"' | I<FILEGLOB> ) I<ACCESS> ','
|
||||
B<FILE RULE> = I<RULE QUALIFIER> ( '"' I<FILEGLOB> '"' | I<FILEGLOB> ) I<ACCESS> ','
|
||||
|
||||
B<RULE QUALIFIER> = [ 'audit' ] [ 'deny' ] [ 'owner' ]
|
||||
|
||||
B<FILEGLOB> = (must start with '/' (after variable expansion), B<?*[]{}^> 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.)
|
||||
|
||||
|
@ -380,6 +382,30 @@ Directories anywhere underneath F</tmp>.
|
|||
|
||||
=back
|
||||
|
||||
=head2 Rule Qualifiers
|
||||
|
||||
There are several rule qualifiers that can be applied to permission rules.
|
||||
Rule qualifiers can modify the rule and/or permissions within the rule.
|
||||
|
||||
=over 4
|
||||
|
||||
=item B<audit>
|
||||
|
||||
Specifies that permissions requests that match the rule should be recorded
|
||||
to the audit log.
|
||||
|
||||
=item B<deny>
|
||||
|
||||
Specifies that permissions requests that match the rule should be denied
|
||||
without logging. Can be combined with 'audit' to enable logging.
|
||||
|
||||
=item B<owner>
|
||||
|
||||
Specifies that the task must have the same euid/fsuid as the object being
|
||||
referenced by the permission check.
|
||||
|
||||
=back
|
||||
|
||||
=head2 #include mechanism
|
||||
|
||||
AppArmor provides an easy abstraction mechanism to group common file
|
||||
|
|
Loading…
Add table
Reference in a new issue