Correct filters examples in README.rst
This change corrects RegExpFilter and ChainingRegExpFilter filter examples. Change-Id: I9841daf0b9644f53b62a9e6afa326f764d5dcdd7
This commit is contained in:
parent
9316ea0623
commit
8c39d15700
@ -170,7 +170,7 @@ expressions to check all subsequent arguments. Parameters are:
|
|||||||
Example: allow to run `/usr/sbin/tunctl`, but only with three parameters with
|
Example: allow to run `/usr/sbin/tunctl`, but only with three parameters with
|
||||||
the first two being -b and -t:
|
the first two being -b and -t:
|
||||||
|
|
||||||
``tunctl: /usr/sbin/tunctl, root, tunctl, -b, -t, .*``
|
``tunctl: RegExpFilter, /usr/sbin/tunctl, root, tunctl, -b, -t, .*``
|
||||||
|
|
||||||
PathFilter
|
PathFilter
|
||||||
----------
|
----------
|
||||||
@ -281,7 +281,7 @@ arguments to be checked, and remaining parts are checked by other filters.
|
|||||||
Example: allow to run `/usr/bin/nice`, but only with first two parameters being
|
Example: allow to run `/usr/bin/nice`, but only with first two parameters being
|
||||||
-n and integer, and followed by any allowed command by the other filters:
|
-n and integer, and followed by any allowed command by the other filters:
|
||||||
|
|
||||||
``nice: /usr/bin/nice, root, nice, -n, -?\d+``
|
``nice: ChainingRegExpFilter, /usr/bin/nice, root, nice, -n, -?\d+``
|
||||||
|
|
||||||
Note: this filter can't be used to impose that the subcommand is always run
|
Note: this filter can't be used to impose that the subcommand is always run
|
||||||
under the prefix command. In particular, it can't enforce that a particular
|
under the prefix command. In particular, it can't enforce that a particular
|
||||||
|
Loading…
x
Reference in New Issue
Block a user