Commit 620ba7a
committed
command_matches_regex: use canonicalized path if user path contains ".."
We already fall back on the canonicalized path if the user-specified
path is relative. This helps prevent abuse of overly broad command
regular expressions in sudoers.
Reported by Christos Papakonstantinou from Cantina (cantina.xyz)1 parent edc4baa commit 620ba7a
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
| 479 | + | |
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
| |||
0 commit comments