| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
specific host into a single log file. For programs this is already
implemented for !prog blocks. So do the same with +host for
hostnames.
Based on a diff from Gregory Edigarov; OK jung@ sthen@
|
|
|
|
| |
OK benno@; input millert@; no objections deraadt@
|
|
|
|
|
| |
This works even if the file descriptor is 0 or 1 or 2.
input and OK millert@
|
|
|
|
| |
OK doug@ djm@
|
|
|
|
|
|
|
| |
configuration file. Also make sure that we fully parsed it.
If not, avoid to start a half-baked syslogd.
with input by and ok bluhm@
|
|
|
|
| |
OK deraadt@
|
|
|
|
|
|
|
| |
tls_config_insecure_noverifyname(), so that it is more accurate and keeps
inline with the distinction between DNS hostname and server name.
Requested by tedu@ during s2k15.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
write retry" may occur. Unfortunately libtls tls_write() has
inherited the strange semantics regarding partial writes and buffer
movement from SSL_write(). This will be investigated after unlock,
the goal is to have the behavior of write(2) in libtls.
For now add a workaround in syslogd. If tls_write() indicates that
it needs a read or write again, stop modifying the output buffer.
Instead drop and count the syslog messages. After writing over TLS
was successful, continue to queue the messages. This solution has
minimum inpact and will be improved after 5.7 release.
discussed with tedu@ reyk@ jsing@; OK tedu@
|
|
|
|
|
| |
and certificate are not verified.
OK jsing@
|
|
|
|
|
|
| |
fulfilled, it is better to fail hard. Then the user can adjust
rc.conf.local or the #define MAXUNIX.
OK millert@
|
|
|
|
|
|
|
|
| |
that includes all currently supported protocols (TLSv1.0, TLSv1.1 and
TLSv1.2). Change all users of libtls to use TLS_PROTOCOLS_ALL so that they
maintain existing behaviour.
Discussed with tedu@ and reyk@.
|
|
|
|
| |
OK henning@
|
|
|
|
| |
OK deraadt@
|
|
|
|
|
| |
For TCP the standard recommends it, but TLS must use this framing.
OK henning@
|
|
|
|
| |
OK bluhm@
|
| |
|
|
|
|
|
|
|
|
| |
If the log server refuses to receive messages and the buffer gets
full, count the dropped messages. Log the counter when the server
accepts messages again. If there are messages in the buffer when
a signal is received, count and log them.
tested sthen@; OK henning@
|
|
|
|
|
|
|
|
|
|
|
|
| |
maximum syslog message size to 8192 octets. Restrict UDP sending
to 1180 octets payload to avoid fragmentation. This is more than
the 1024 we supported before.
Also truncate the line in printline() to exactly 8192 bytes regardless
of visual encoding. That is a more predictable behavior and makes
testing easier.
Although syslog(3) does not support long messages yet, make sure
that /dev/log can receive them.
OK deraadt@
|
|
|
|
|
| |
Increase it to 256 bytes and call it ebuf everywhere.
OK sthen@
|
|
|
|
|
|
| |
and hostname of the TLS server before sending any messages to it.
Per default /etc/ssl/cert.pem is used as CA file.
OK deraadt@
|
|
|
|
|
|
| |
with getaddrinfo() or getnameinfo(), but keep HOST_NAME_MAX+1 when
the hostname comes from gethostname().
No binary change; OK deraadt@
|
|
|
|
| |
OK reyk@
|
|
|
|
|
|
|
|
|
| |
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
|
|
|
| |
terminates, try to reconnect after an increasing timeout.
test and OK jasper@
|
|
|
|
|
| |
the special f_fd field. Also remove an useless F_FORWUDP case.
test and OK jasper@
|
|
|
|
| |
OK dlg@
|
|
|
|
|
|
| |
and a use after free if it received a SIGHUP. Call bufferevent_free()
to deactivate the callbacks and close the TCP socket.
OK jasper@ deraadt@
|
|
|
|
| |
test and OK jasper@ jca@
|
|
|
|
|
|
| |
don't accidentally assign 3, too.
ok millert, with input by and ok bluhm
|
|
|
|
|
|
| |
short to int too -- there are no space savings anymore, as stated by millert.
ok bluhm, millert
|
|
|
|
|
|
|
| |
parsing numbers at all -- syslog.conf(5) explicitly states that keywords
have to be used.
ok millert
|
|
|
|
| |
ok bluhm
|
| |
|
| |
|
|
|
|
|
| |
with a simple strdup().
Found by brad@ with LLVM; OK doug@
|
|
|
|
|
| |
the sigprocmask(2) protection is not necessary and can be removed.
OK nicm@ deraadt@
|
|
|
|
| |
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@
|
|
|
|
|
|
|
| |
Prompted by similar rsyslog issue fixed by Rainer Gerhards (rgerhards
(at) adiscon.com)
ok deraadt@ blambert@ sthen@ millert@
|
|
|
|
| |
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@
|
|
|
|
|
| |
will become the libevent callbacks later.
input and OK doug@
|
|
|
|
|
| |
done easier by ignoring SIGCHLD.
OK guenther@
|
|
|
|
|
| |
the code was not reached. No binary change.
OK miod@ guenther@
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
unsigned". Some checks got stricter. The (size_t) cast is only
done, if the argument is not negative.
OK henning@
|
|
|
|
|
|
| |
"syslogd: priv_getaddrinfo: overflow attempt in hostname"
check the host and port length when parsing the config.
OK henning@
|
|
|
|
| |
OK henning@
|