- (djm) Add Redhat RPM patch for AUTHPRIV SyslogFacility

This commit is contained in:
Damien Miller 2000-11-29 13:51:06 +11:00
parent a19cf47b0f
commit 6dbfef6355
5 changed files with 14 additions and 1 deletions

View File

@ -22,6 +22,7 @@
- (djm) Patch from Pekka Savola <Pekka.Savola@netcore.fi> to include a few - (djm) Patch from Pekka Savola <Pekka.Savola@netcore.fi> to include a few
more manpage paths in fixpaths calls more manpage paths in fixpaths calls
- (djm) Also add xauth path at Pekka's suggestion. - (djm) Also add xauth path at Pekka's suggestion.
- (djm) Add Redhat RPM patch for AUTHPRIV SyslogFacility
20001125 20001125
- (djm) Give up privs when reading seed file - (djm) Give up privs when reading seed file

View File

@ -82,6 +82,11 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
case SYSLOG_FACILITY_AUTH: case SYSLOG_FACILITY_AUTH:
log_facility = LOG_AUTH; log_facility = LOG_AUTH;
break; break;
#ifdef LOG_AUTHPRIV
case SYSLOG_FACILITY_AUTHPRIV:
log_facility = LOG_AUTHPRIV;
break;
#endif
case SYSLOG_FACILITY_LOCAL0: case SYSLOG_FACILITY_LOCAL0:
log_facility = LOG_LOCAL0; log_facility = LOG_LOCAL0;
break; break;

3
log.c
View File

@ -187,6 +187,9 @@ static struct {
{ "DAEMON", SYSLOG_FACILITY_DAEMON }, { "DAEMON", SYSLOG_FACILITY_DAEMON },
{ "USER", SYSLOG_FACILITY_USER }, { "USER", SYSLOG_FACILITY_USER },
{ "AUTH", SYSLOG_FACILITY_AUTH }, { "AUTH", SYSLOG_FACILITY_AUTH },
#ifdef LOG_AUTHPRIV
{ "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
#endif
{ "LOCAL0", SYSLOG_FACILITY_LOCAL0 }, { "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
{ "LOCAL1", SYSLOG_FACILITY_LOCAL1 }, { "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
{ "LOCAL2", SYSLOG_FACILITY_LOCAL2 }, { "LOCAL2", SYSLOG_FACILITY_LOCAL2 },

4
ssh.h
View File

@ -20,6 +20,7 @@
#include <netinet/in.h> /* For struct sockaddr_in */ #include <netinet/in.h> /* For struct sockaddr_in */
#include <pwd.h> /* For struct pw */ #include <pwd.h> /* For struct pw */
#include <stdarg.h> /* For va_list */ #include <stdarg.h> /* For va_list */
#include <syslog.h> /* For LOG_AUTH and friends */
#include <sys/socket.h> /* For struct sockaddr_storage */ #include <sys/socket.h> /* For struct sockaddr_storage */
#include "fake-socket.h" /* For struct sockaddr_storage */ #include "fake-socket.h" /* For struct sockaddr_storage */
#ifdef HAVE_SYS_SELECT_H #ifdef HAVE_SYS_SELECT_H
@ -427,6 +428,9 @@ typedef enum {
SYSLOG_FACILITY_DAEMON, SYSLOG_FACILITY_DAEMON,
SYSLOG_FACILITY_USER, SYSLOG_FACILITY_USER,
SYSLOG_FACILITY_AUTH, SYSLOG_FACILITY_AUTH,
#ifdef LOG_AUTHPRIV
SYSLOG_FACILITY_AUTHPRIV,
#endif
SYSLOG_FACILITY_LOCAL0, SYSLOG_FACILITY_LOCAL0,
SYSLOG_FACILITY_LOCAL1, SYSLOG_FACILITY_LOCAL1,
SYSLOG_FACILITY_LOCAL2, SYSLOG_FACILITY_LOCAL2,

View File

@ -23,7 +23,7 @@ PrintMotd yes
KeepAlive yes KeepAlive yes
# Logging # Logging
SyslogFacility AUTH SyslogFacility AUTHPRIV
LogLevel INFO LogLevel INFO
#obsoletes QuietMode and FascistLogging #obsoletes QuietMode and FascistLogging