mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Do not inform the user that the command was not permitted by the
policy if they do not successfully authenticate. This is a regression introduced in sudo 1.8.6.
This commit is contained in:
@@ -379,7 +379,7 @@ sudoers_policy_main(int argc, char * const argv[], int pwflag, char *env_add[],
|
||||
rval = check_user(validated, sudo_mode);
|
||||
if (rval != true) {
|
||||
if (!ISSET(validated, VALIDATE_OK))
|
||||
log_failure(validated, cmnd_status);
|
||||
log_denial(validated, false);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user