From: Todd C. Miller Date: Thu, 15 Jun 1995 04:47:30 +0000 (+0000) Subject: added SPOOF_ATTEMPT suypport X-Git-Tag: SUDO_1_4_0~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b472234683a9686d29d48b408ed4d69e21178d5;p=sudo added SPOOF_ATTEMPT suypport --- diff --git a/logging.c b/logging.c index 100b3fede..8b0d219a4 100644 --- a/logging.c +++ b/logging.c @@ -233,6 +233,14 @@ void log_error(code) #endif /* LOGGING & SLOG_SYSLOG */ break; + case SPOOF_ATTEMPT: + (void) sprintf(p, "probable spoofing attempt; PWD=%s ; COMMAND=", + cwd); +#if (LOGGING & SLOG_SYSLOG) + pri = Syslog_priority_NO; +#endif /* LOGGING & SLOG_SYSLOG */ + break; + default: strcat(p, "found a wierd error : "); #if (LOGGING & SLOG_SYSLOG) @@ -594,6 +602,12 @@ void inform_user(code) _PATH_SUDO_SUDOERS, SUDOERS_OWNER); break; + case SPOOF_ATTEMPT: + (void) fprintf(stderr, + "%s is not the same command that was validated, disallowing.\n", + cmnd); + break; + default: (void) fprintf(stderr, "Something wierd happened.\n\n"); @@ -647,6 +661,7 @@ static int appropriate(code) */ case VALIDATE_ERROR: case NO_SUDOERS_FILE: + case SPOOF_ATTEMPT: default: return (1); break;