[sudo-workers] [PATCH] regexp support added to command line arguments

Todd C. Miller Todd.Miller at courtesan.com
Wed Mar 23 14:15:38 MDT 2016


I'm going to have to think about this a bit.  The main thing holding
up regex support was the lack of a good way to specify separate
regexes for the command and the args.  Only supporting them in the
arguments is more straightforward to implement but could be a little
confusing.

Rather than support extended regular expressions now and add
perl-compatible regular expressions later I think it would be better
for sudo to just include a copy of pcre to use if the system doesn't
have it already.  This is similar to how zlib support is done.
Also, using pcre makes it easier to specify modifiers inside the
regex itself for things like case-insensitive matching.

 - todd


More information about the sudo-workers mailing list