| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
callbacks for TCP and TLS accept(2) instead of looking at the value
of the listen file descriptor.
OK millert@
|
|
|
|
|
|
| |
path. Before returning early with an error, close the newly opened
file descriptor.
OK deraadt@
|
| |
|
|
|
|
|
|
| |
4k read buffer. This can hang ldapd(8). Setting both to 16k
improves the situation.
report Seiya Kawashima; feedback Robert Klein; test and OK gsoares@
|
|
|
|
|
|
| |
overcome this limitation, allow to specify more than one listen
address for UDP and TCP.
input jmc@; OK deraadt@ millert@
|
|
|
|
|
|
|
| |
reloading its config. This could happen when multiple signals were
sent during a short interval. So block SIGHUP until signal handlers
are installed.
OK deraadt@ jca@
|
|
|
|
|
|
|
|
| |
re-exec itself. This exec is done during startup of the privsep
parent or when syslogd restarts after a SIGHUP. Convert a relative
path in argv[0] to an absolute one with realpath(3) before chdir(2).
Do all the path handling in priv_init().
suggested by millert@; OK jca@
|
|
|
|
|
|
|
|
|
| |
syslogd(8) and the buffer is overwritten. But after a complete
message buffer was read, we got a split line. This happened as
syslogd did a partial read which ended within a line. To avoid the
latter, syslogd has to reserve space for the kernel message buffer
plus 64 chars for the buffer full message.
OK millert@
|
|
|
|
| |
Feedback and OK jsing@
|
|
|
|
| |
OK bluhm@
|
|
|
|
|
|
| |
syslogd(8). Just malloc(3) them dynamically which also gives a
more random address space layout.
OK deraadt@
|
|
|
|
| |
No binary change.
|
|
|
|
|
| |
descriptor variables in syslogd(8) this way.
OK rzalamena@
|
|
|
|
|
| |
to reshuffle its memory layout.
Input rzalamena@; OK deraadt@
|
|
|
|
|
|
| |
of a second to each syslog timestamp. As we do not measure the
time in syslog(3), use only 3 digits with millisecond precision.
OK dlg@
|
|
|
|
|
|
|
|
|
| |
that the syslog timestamp does not contain the year and the timezone,
but has local time with daylight saving time.
Now with -Z syslogd(8) switches to RFC 5424 ISO format for timestamps.
Then all logging is also done in UTC. Default is to keep local
time and BSD syslog RFC 3164 format.
BIG BIG BIG OK for the feature ajacoutot@; OK deraadt@
|
| |
|
|
|
|
| |
from bluhm and myself
|
| |
|
| |
|
|
|
|
| |
Written together with jmc@
|
|
|
|
|
|
|
|
| |
for TCP or TLS connections than before. It makes no sense to buffer
messages in kernel, the dynamic limit there makes testing the dropped
message statistics unreliable. Syslog has no high performance
requirements, so limit all TCP socket buffers to 64 KB.
OK henning@ deraadt@
|
|
|
|
| |
Written together with jmc@
|
| |
|
|
|
|
|
|
| |
client certificates. This prevent that malicious clients can send
fake messages.
OK deraadt@
|
|
|
|
| |
OK millert@
|
|
|
|
|
| |
and key loading can be simplified.
OK jsing@
|
|
|
|
| |
ok natano reyk
|
|
|
|
|
|
|
| |
changes - map the previous configuration to the equivalent in the new
groups. This will be revisited post release.
Discussed with beck@
|
|
|
|
| |
OK jmc@
|
|
|
|
|
|
| |
remote server to verify that the log messages from our syslogd are
authentic.
From Kapetanakis Giannis; man page input jmc@; OK jung@ deraadt@
|
|
|
|
|
| |
traditional tabs-deliminated fields. This is consistent with what
FreeBSD, NetBSD and Linux do. Adapted from FreeBSD.
|
|
|
|
|
|
| |
This fixes a long-standing issue where syslogd would print 15 NUL
bytes followed by two blank spaces before the log message for
warnings generated while parsing syslog.conf. OK bluhm@
|
|
|
|
|
| |
The privileged process sends the errno value back when it cannot
open a file. OK gilles@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
ttymsg.c doesn't need to include fcntl.h.
Tweak standard fd sanitising to be more like the sanitise_stdfd()
used elsewhere, though other uses of 'nullfd' make importing
sanitise_stdfd() itself unappetizing.
Add a die(0) if dup2() fails.
suggestions & ok bluhm@
|
|
|
|
|
| |
Patch from Christian Heckendorf <mbie at ulmus dot me>.
OK jmc@ bentley@
|
|
|
|
| |
From Michael Savage; input and OK mmcc@
|
|
|
|
|
|
| |
libevent messages. Before the code was removed from libevent, the
library itself printed that to stderr.
OK nicm@
|
|
|
|
|
|
| |
The mark timeout event is not persistent, add the timer intervall
everytime it fires.
Bug report, analysis and fix from Einfach Jemand rru.142 at gmail.com
|
|
|
|
|
|
|
|
| |
child tried to load the default CA file when it was connecting to
a TLS server. The latter has never worked as the child is chrooted
to /var/empty. Set the CA storage to an empty string to avoid this
behavior. As a benefit pledge "rpath" can be removed.
OK benno@
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
has been added to it, the syslogd privsep parent does not need
pledge "inet" anymore.
discussed with deraadt@
|
|
|
|
| |
OK deraadt@
|
|
|
|
|
| |
inet dns getpw sendfd proc exec".
OK deraadt@
|
|
|
|
|
| |
as dprintf(3) is in libc now and does something different.
OK guenther@
|
|
|
|
| |
From Michael McConville; OK guenther@
|
|
|
|
|
|
|
| |
sizeof(struct sockaddr_un), so do the simple, portable thing.
Also convert some strncpy() to strlcpy()
ok deraadt@
|