summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Brandily <zzelle@gmail.com>2014-11-13 11:18:57 +0100
committerCedric Brandily <zzelle@gmail.com>2014-11-13 11:18:57 +0100
commit8c39d157008e093e401783825ba65dc0558508f8 (patch)
tree26cc20acfe591408a861747c9b69411a76014c1f
parent9316ea0623d32de9e9f01642380af6a6a4194faf (diff)
downloadoslo-rootwrap-8c39d157008e093e401783825ba65dc0558508f8.tar.gz
Correct filters examples in README.rst
This change corrects RegExpFilter and ChainingRegExpFilter filter examples. Change-Id: I9841daf0b9644f53b62a9e6afa326f764d5dcdd7
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 9b4d910..6a7fed7 100644
--- a/README.rst
+++ b/README.rst
@@ -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
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
----------
@@ -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
-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
under the prefix command. In particular, it can't enforce that a particular