<div dir="ltr"><div><div><div>Hi list,<br><br></div>I want to create a RegExpFilter (in nova/rootwrap.d) where the last parameter is optional.<br></div>I can create a filter so that it works either with the last parameter or without.<br>
But I don't know how the rule has to look like so that the last parameter is optional.<br></div><div><br>Following is in my *.filters file:<br><br>mycmd: RegExpFilter, /usr/local/bin/mycmd, root, mycmd, either|or, anotherparam, .*<br>
if I use the rule above there must be a 3rd parameter (no matter how it looks like)<br><br>However if I use the following I can't callĀ "mycmd" with a 3rd parameter<br>mycmd: RegExpFilter, /usr/local/bin/mycmd, root, mycmd, either|or, anotherparam<br>
<br></div><div>If I use both rules the first one is ignored.<br><br></div><div>What should I change to have a rule with an optional parameter?<br></div><div><br></div><div>Many thanks,<br><br>Kai<br></div><div><br></div>
</div>