From: Todd C. Miller Date: Sun, 18 Oct 1998 23:10:18 +0000 (+0000) Subject: move Syslog_* defs into sudo.h X-Git-Tag: SUDO_1_5_7~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16d565dd8179d4319861e418903577f2306f0b76;p=sudo move Syslog_* defs into sudo.h --- diff --git a/config.h.in b/config.h.in index ce8b3dcf9..04a4048eb 100644 --- a/config.h.in +++ b/config.h.in @@ -418,27 +418,4 @@ # define EXEC execvp #endif /* USE_EXECV */ -/* - * syslog(3) parameters - */ - -#if (LOGGING & SLOG_SYSLOG) -# include -# ifndef Syslog_ident -# define Syslog_ident "sudo" -# endif -# ifndef Syslog_options -# define Syslog_options 0 -# endif -# if !defined(Syslog_facility) && defined(LOG_NFACILITIES) -# define Syslog_facility LOGFAC -# endif -# ifndef Syslog_priority_OK -# define Syslog_priority_OK LOG_NOTICE -# endif -# ifndef Syslog_priority_NO -# define Syslog_priority_NO LOG_ALERT -# endif -#endif /* LOGGING & SLOG_SYSLOG */ - #endif /* _SUDO_CONFIG_H */ diff --git a/sudo.h b/sudo.h index e4cb764d5..ff9446b61 100644 --- a/sudo.h +++ b/sudo.h @@ -109,10 +109,33 @@ struct generic_alias { # define MAXSYSLOGLEN 960 #endif +/* + * syslog(3) parameters + */ + #define SLOG_SYSLOG 0x01 #define SLOG_FILE 0x02 #define SLOG_BOTH 0x03 +#if (LOGGING & SLOG_SYSLOG) +# include +# ifndef Syslog_ident +# define Syslog_ident "sudo" +# endif +# ifndef Syslog_options +# define Syslog_options 0 +# endif +# if !defined(Syslog_facility) && defined(LOG_NFACILITIES) +# define Syslog_facility LOGFAC +# endif +# ifndef Syslog_priority_OK +# define Syslog_priority_OK LOG_NOTICE +# endif +# ifndef Syslog_priority_NO +# define Syslog_priority_NO LOG_ALERT +# endif +#endif /* LOGGING & SLOG_SYSLOG */ + #define VALIDATE_OK 0x00 #define VALIDATE_NO_USER 0x01 #define VALIDATE_NOT_OK 0x02