| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
did not work anymore. unveil(2) prevented removal. Cleaning the
UNIX domain sockets is not necessary. They are harmless and unlinked
before a new bind. So delete that functionality and convert global
to local variables. Providing /var/run/syslog.pid is a common
feature that should be kept. A stale pid file is confusing. So
add a constant path to unveil(2) to allow pid file removal.
OK deraadt@
|
|
|
|
| |
Add my copyright explicitly.
|
|
|
|
|
|
| |
truncate the length of a syslog message to 8192 bytes. Use one
global define LOG_MAXLINE for all of them.
OK deraadt@ millert@
|
|
|
|
|
| |
The functionality has moved into log_setdebug().
OK millert@
|
|
|
|
|
|
| |
the error string. Log the message when the error happens and make
the function void.
OK millert@
|
|
|
|
|
| |
log_debugadd() to construct debug message incrementally.
OK deraadt@
|
|
|
|
|
|
|
|
|
|
| |
functions with a more common log.c implementation. Of course
openlog(3) cannot be used, so adapt the log.[ch] initially copied
from ospfd(8) to syslogd's special needs. As the messages are
limited to ERRBUFSIZE anyway, malloc(3) in the error logging code
can be avoided. Changing all log calls to the new API will be done
in a separate step.
OK millert@
|
|
|
|
|
|
| |
syslogd(8). Just malloc(3) them dynamically which also gives a
more random address space layout.
OK deraadt@
|
|
|
|
|
| |
descriptor variables in syslogd(8) this way.
OK rzalamena@
|
|
|
|
|
| |
to reshuffle its memory layout.
Input rzalamena@; OK deraadt@
|
|
|
|
|
|
|
|
| |
in a background process. A potential fork(2) at every message is
bad, so replace this with an event. As a bonus the syslogd child
process does not need to pledge "proc" anymore. Also limit the
number of delayed write events.
OK deraadt@
|
|
|
|
|
| |
syslogd child calls fork(2) to delay blocked output.
OK benno@
|
|
|
|
|
| |
as dprintf(3) is in libc now and does something different.
OK guenther@
|
|
|
|
|
|
| |
encrypted messages. The server certificates are taken from /etc/ssl
like relayd does.
OK benno@ beck@ deraadt@
|
|
|
|
|
|
|
|
|
| |
socket and accepts incomming messages. At the moment, only RFC
6587 3.4.2. Non-Transparent-Framing format with new-line separator
is supprted for incomming messsages. Outgoing messages are encoded
as 3.4.1. Octet Counting. Autodetection of incomming format will
be implemented later.
OK deraadt@ jmc@ millert@
|
| |
|
|
|
|
|
|
|
| |
address to receive UDP packets. One advantge over -u and the *
sockets is that you can bind to localhost and divert the packets
with pf. It is also possible to use a non standard port.
OK jung@ jmc@
|
|
|
|
| |
test and OK nicm@; OK henning@
|
|
|
|
|
|
|
|
|
| |
- Name variable path_ctlsock consistently.
- Name function ctlconn_logto() consistently.
- Replace the nested if/else logic in ctlconn_write_handler()
with if/return.
- Call ctlconn_cleanup() only if there is a control connection.
OK doug@
|
|
|
|
|
|
| |
Merge in more functionality from bluhm's patch.
ok bluhm@
|
|
|
|
|
|
|
| |
bluhm@ found and fixed this bug. This is a modified version of his
patch which makes the intention a little clearer.
ok bluhm@
|
|
|
|
|
|
|
| |
line switches. If the log server is an FQDN, DNS chooses wether
to take the IPv4 or IPv6 route. Allow to prefix the log host with
udp4:// or udp6:// to choose a protocol.
OK henning@
|
|
|
|
|
|
|
| |
that was necessary for gethostbyaddr() because the latter is not
signal safe. Change the return code semantics of priv_getnameinfo()
to match getnameinfo(3).
input and OK jca@
|
| |
|
|
|
|
|
| |
function does. Change the return code semantics to match getaddrinfo(3).
OK deraadt@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
| |
gcc4 gets upset about.
based on suggestions from miod@, ok millert@
|
|
|
|
|
| |
- reserve a poll descriptor entry for INET6 (not used yet)
ok henning
|
|
|
|
| |
ok avsm@
|
|
|
|
| |
ok henning@ anil@
|
|
|
|
|
| |
extracted using a small client. Useful for diskless systems.
much feedback from deraadt@, canacar@, jmc@, jakob@ ; ok deraadt@
|
|
|
|
| |
ok deraadt@
|
|
to user _syslogd and chroots itself, while the privileged parent grants it
access to open logfiles and other calls it needs.
The only difference from existing behaviour is that if syslog.conf changes
and syslogd receives a HUP, it will re-exec itself and have two new PIDs.
A HUP with an unchanged config will make syslogd reopen logfiles as before.
Lots of help and code from deraadt@ , and advice from millert@
Various versions tested by todd, cloder, mpech, markus, tdeval and others
|