summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--log-server.c5
-rw-r--r--log.c3
-rw-r--r--ssh.h4
-rw-r--r--sshd_config2
5 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 69698457e..828478050 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
22 - (djm) Patch from Pekka Savola <Pekka.Savola@netcore.fi> to include a few 22 - (djm) Patch from Pekka Savola <Pekka.Savola@netcore.fi> to include a few
23 more manpage paths in fixpaths calls 23 more manpage paths in fixpaths calls
24 - (djm) Also add xauth path at Pekka's suggestion. 24 - (djm) Also add xauth path at Pekka's suggestion.
25 - (djm) Add Redhat RPM patch for AUTHPRIV SyslogFacility
25 26
2620001125 2720001125
27 - (djm) Give up privs when reading seed file 28 - (djm) Give up privs when reading seed file
diff --git a/log-server.c b/log-server.c
index de3d5cfeb..943c31417 100644
--- a/log-server.c
+++ b/log-server.c
@@ -82,6 +82,11 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr)
82 case SYSLOG_FACILITY_AUTH: 82 case SYSLOG_FACILITY_AUTH:
83 log_facility = LOG_AUTH; 83 log_facility = LOG_AUTH;
84 break; 84 break;
85#ifdef LOG_AUTHPRIV
86 case SYSLOG_FACILITY_AUTHPRIV:
87 log_facility = LOG_AUTHPRIV;
88 break;
89#endif
85 case SYSLOG_FACILITY_LOCAL0: 90 case SYSLOG_FACILITY_LOCAL0:
86 log_facility = LOG_LOCAL0; 91 log_facility = LOG_LOCAL0;
87 break; 92 break;
diff --git a/log.c b/log.c
index ce89c59ba..e75c6c46f 100644
--- a/log.c
+++ b/log.c
@@ -187,6 +187,9 @@ static struct {
187 { "DAEMON", SYSLOG_FACILITY_DAEMON }, 187 { "DAEMON", SYSLOG_FACILITY_DAEMON },
188 { "USER", SYSLOG_FACILITY_USER }, 188 { "USER", SYSLOG_FACILITY_USER },
189 { "AUTH", SYSLOG_FACILITY_AUTH }, 189 { "AUTH", SYSLOG_FACILITY_AUTH },
190#ifdef LOG_AUTHPRIV
191 { "AUTHPRIV", SYSLOG_FACILITY_AUTHPRIV },
192#endif
190 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 }, 193 { "LOCAL0", SYSLOG_FACILITY_LOCAL0 },
191 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 }, 194 { "LOCAL1", SYSLOG_FACILITY_LOCAL1 },
192 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 }, 195 { "LOCAL2", SYSLOG_FACILITY_LOCAL2 },
diff --git a/ssh.h b/ssh.h
index bb103fe4d..2c2afd5a0 100644
--- a/ssh.h
+++ b/ssh.h
@@ -20,6 +20,7 @@
20#include <netinet/in.h> /* For struct sockaddr_in */ 20#include <netinet/in.h> /* For struct sockaddr_in */
21#include <pwd.h> /* For struct pw */ 21#include <pwd.h> /* For struct pw */
22#include <stdarg.h> /* For va_list */ 22#include <stdarg.h> /* For va_list */
23#include <syslog.h> /* For LOG_AUTH and friends */
23#include <sys/socket.h> /* For struct sockaddr_storage */ 24#include <sys/socket.h> /* For struct sockaddr_storage */
24#include "fake-socket.h" /* For struct sockaddr_storage */ 25#include "fake-socket.h" /* For struct sockaddr_storage */
25#ifdef HAVE_SYS_SELECT_H 26#ifdef HAVE_SYS_SELECT_H
@@ -427,6 +428,9 @@ typedef enum {
427 SYSLOG_FACILITY_DAEMON, 428 SYSLOG_FACILITY_DAEMON,
428 SYSLOG_FACILITY_USER, 429 SYSLOG_FACILITY_USER,
429 SYSLOG_FACILITY_AUTH, 430 SYSLOG_FACILITY_AUTH,
431#ifdef LOG_AUTHPRIV
432 SYSLOG_FACILITY_AUTHPRIV,
433#endif
430 SYSLOG_FACILITY_LOCAL0, 434 SYSLOG_FACILITY_LOCAL0,
431 SYSLOG_FACILITY_LOCAL1, 435 SYSLOG_FACILITY_LOCAL1,
432 SYSLOG_FACILITY_LOCAL2, 436 SYSLOG_FACILITY_LOCAL2,
diff --git a/sshd_config b/sshd_config
index f368b97ac..357c42502 100644
--- a/sshd_config
+++ b/sshd_config
@@ -23,7 +23,7 @@ PrintMotd yes
23KeepAlive yes 23KeepAlive yes
24 24
25# Logging 25# Logging
26SyslogFacility AUTH 26SyslogFacility AUTHPRIV
27LogLevel INFO 27LogLevel INFO
28#obsoletes QuietMode and FascistLogging 28#obsoletes QuietMode and FascistLogging
29 29