From 8c39d157008e093e401783825ba65dc0558508f8 Mon Sep 17 00:00:00 2001 From: Cedric Brandily Date: Thu, 13 Nov 2014 11:18:57 +0100 Subject: [PATCH] Correct filters examples in README.rst This change corrects RegExpFilter and ChainingRegExpFilter filter examples. Change-Id: I9841daf0b9644f53b62a9e6afa326f764d5dcdd7 --- README.rst | 4 ++-- 1 file 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