mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
runas_matches is now set to false if we get a negative match
This commit is contained in:
@@ -252,13 +252,15 @@ opcmnd : cmnd { ; }
|
|||||||
else if (cmnd_matched == FALSE)
|
else if (cmnd_matched == FALSE)
|
||||||
cmnd_matches = TRUE;
|
cmnd_matches = TRUE;
|
||||||
}
|
}
|
||||||
| runasspec {;}
|
| runasspec { ; }
|
||||||
| nopassreq {;}
|
| nopassreq { ; }
|
||||||
;
|
;
|
||||||
|
|
||||||
runasspec : RUNAS runaslist chkcmnd {
|
runasspec : RUNAS runaslist chkcmnd {
|
||||||
if ($2 > 0 && $3 == TRUE)
|
if ($2 > 0 && $3 == TRUE)
|
||||||
runas_matches = TRUE;
|
runas_matches = TRUE;
|
||||||
|
else
|
||||||
|
runas_matches = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
runaslist : runasuser {
|
runaslist : runasuser {
|
||||||
|
Reference in New Issue
Block a user