Hi list,

I want to create a RegExpFilter (in nova/rootwrap.d) where the last
parameter is optional.
I can create a filter so that it works either with the last parameter or
without.
But I don't know how the rule has to look like so that the last parameter
is optional.

Following is in my *.filters file:

mycmd: RegExpFilter, /usr/local/bin/mycmd, root, mycmd, either|or,
anotherparam, .*
if I use the rule above there must be a 3rd parameter (no matter how it
looks like)

However if I use the following I can't call  "mycmd" with a 3rd parameter
mycmd: RegExpFilter, /usr/local/bin/mycmd, root, mycmd, either|or,
anotherparam

If I use both rules the first one is ignored.

What should I change to have a rule with an optional parameter?

Many thanks,

Kai
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to