Conversation
|
The regex is still passed through |
I only considered the case where the program arguments are a regular expression. Since the example given on the sudo blogpost only deals with that (and only the wildcards-in-arguments feature is problematic), I had missed that in sudoers the command can also be a regular expression (🙈); to quote
Note: the current code already requires that a command always starts with But I've changed that to also complain about regular expressions. Note that in ogsudo, the following is not a correct way (per the quoted manpage above, and you can also verify this) to write a regex match for command-and-arguments: But it wil not give any error message to that effect (it will try to match a binary with the name |
031bbdd to
d437fdc
Compare
Right now to only give a more precise error message, CC #1350