mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
Do not short circuit pseudo commands when we get a match since, depending
on the settings, we may need to examine all commands for tags.
This commit is contained in:
parent
d488f2a034
commit
96f1ea4701
3
parse.c
3
parse.c
@ -192,12 +192,9 @@ sudo_file_lookup(nss, validated, pwflag)
|
|||||||
if ((pwcheck == any && nopass != TRUE) ||
|
if ((pwcheck == any && nopass != TRUE) ||
|
||||||
(pwcheck == all && nopass != FALSE))
|
(pwcheck == all && nopass != FALSE))
|
||||||
nopass = cs->tags.nopasswd;
|
nopass = cs->tags.nopasswd;
|
||||||
if (match == ALLOW)
|
|
||||||
goto matched_pseudo;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
matched_pseudo:
|
|
||||||
if (match == ALLOW || user_uid == 0) {
|
if (match == ALLOW || user_uid == 0) {
|
||||||
/* User has an entry for this host. */
|
/* User has an entry for this host. */
|
||||||
SET(validated, VALIDATE_OK);
|
SET(validated, VALIDATE_OK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user