aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syslog.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2004-11-04 23:09:57 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2004-11-04 23:09:57 +0000
commit240d5a9b1ce76f04a7c7e15791557763b2f1fd7e (patch)
tree13d68b1840b739aaaa64351fb83f58c68c26472e /sys/sys/syslog.h
parent247444670ef3b61c7bdb3fbb34b88c4a26c71aba (diff)
downloadsrc-240d5a9b1ce76f04a7c7e15791557763b2f1fd7e.tar.gz
src-240d5a9b1ce76f04a7c7e15791557763b2f1fd7e.zip
Protect against local flooder of /var/run/log. Do not loop forever in
syslog(3) if we are a priveleged program (sshd, su, etc.). - Make syslogd open an additional socket /var/run/logpriv, with 0600 permissions. - In libc, try to use this socket. - Do not loop forever if we are using this socket (partial backout of 1.31) Reviewed by: dwmalone, Andrea Campi <andrea webcom it> Approved by: julian (mentor) MFC after: 1 month
Notes
Notes: svn path=/head/; revision=137233
Diffstat (limited to 'sys/sys/syslog.h')
-rw-r--r--sys/sys/syslog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h
index bc18d6961c6e..8b216d4da37e 100644
--- a/sys/sys/syslog.h
+++ b/sys/sys/syslog.h
@@ -34,6 +34,7 @@
#define _SYS_SYSLOG_H_
#define _PATH_LOG "/var/run/log"
+#define _PATH_LOG_PRIV "/var/run/logpriv"
#define _PATH_OLDLOG "/dev/log" /* backward compatibility */
/*