Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
1749dbb96ef9139eda4fd0239f80acaf5aac8078- From:
- jsg <jsg@openbsd.org>
- Date:
remove prototypes with no matching function
- Commit:
277590d4a1e390e2eb739be011b726cadc675517- From:
- tb <tb@openbsd.org>
- Date:
Check tls_config_new() for NULL return
This way we don't crash in tls_config_insecure_noverify_cert().
From Mateusz Piotrowski on bugs
ok claudio
- Commit:
615c8bd8de04b4eb9323858ddfb874523cba3451- From:
- jmatthew <jmatthew@openbsd.org>
- Date:
Use the F_CHECK_SENT and F_CHECK_DONE flags to determine whether a
previous attempt at running a check script has finished yet, so we
can avoid building up a backlog of check requests.
ok dlg@ tb@ giovanni@
- Commit:
37ed6014e6a950279c73fe895cfade2a997a6086- From:
- benno <benno@openbsd.org>
- Date:
replace the current log options
log updates|all
with
log state changes
log host checks
log connection [errors]
The first two control the logging of host check results: either changes in host state only or
all checks.
The third option controls logging of connections in relay mode:
Either log all connections, or only errors.
Additionaly, errors will be logged with LOG_WARN and good connections
will be logged with LOG_INFO, so they can be differentiated in syslog.
ok and feedback from claudio@
- Commit:
ebb0dc76ac854823f546d32f834bf8adb9f5f498- From:
- benno <benno@openbsd.org>
- Date:
always initialize the hce_launch_checks event timer.
Fixes a crash when poll is run without any checks.
Found and fixed by Hiltjo Posthuma (hiltjo -AT- codemadness -DOT- org).
ok claudio@
- Commit:
09e53feeaa2a7c28a81c8bac20bab18c68d83883- From:
- benno <benno@openbsd.org>
- Date:
use __func__ in log messages. fix some whitespace while here.
From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks!
ok florian, claudio
- Commit:
f4a6eef32d65cd21b8ae3ff004c9e6df1da60025- From:
- claudio <claudio@openbsd.org>
- Date:
Migrate relayd to use libtls for TLS. Still does the TLS privsep via the
engine but at least we can use a sane API for new features.
Going in now so it is possible to work with this in tree.
General agreement at d2k17.
- Commit:
41ddf20a7560893e272c9b802489f5c96a23a22d- From:
- reyk <reyk@openbsd.org>
- Date:
Use the fork+exec privsep model in relayd; based on rzalamena@'s work
for httpd with some (current and previous) changes for relayd. Once
again, both daemons now share the same proc.c where most of the
privsep "magic" happens.
OK benno@ rzalamena@
- Commit:
58fc320c602b00aed04b7887496e83d9892bed86- From:
- reyk <reyk@openbsd.org>
- Date:
Split "struct relayd" into two structs: "struct relayd" and "struct
relayd_config". This way we can send all the relevant global
configuration to the children, not just the flags and the opts.
With input from and
OK claudio@ benno@
- Commit:
94404df807e123f4adb593433ee6e68bbf0378d0- From:
- reyk <reyk@openbsd.org>
- Date:
Terminate relayd using the socket status instead of watching SIGCHLD
or killing child processes. - Based on rzalamena@'s diff for httpd.
OK deraadt@ rzalamena@
- Commit:
e7687e91c90bb114ce51e47e58f29f730f964ba5- From:
- benno <benno@openbsd.org>
- Date:
This adds the host_error output and the http code (when available) to the
host-check log.
ok claudio@
- Commit:
141b9058ce43c28db842829304e8909a29d231bb- From:
- reyk <reyk@openbsd.org>
- Date:
In most cases we don't need all arguments of proc_compose*_imsg(),
so add a shortcut proc_compose*() that skips all of them. Only use the
full argument list if needed. The functions with full argument lists can
eventually be replaced with a nicer transaction-based approach later.
OK benno@
- Commit:
d36fa7d221faca1c2cfae02d0380a8fe7d0ec7a9- From:
- benno <benno@openbsd.org>
- Date:
pledge: allow getsockopt IP_IPDEFTTL with promise inet
then relayd's host check engine can be pledged.
ok reyk@, approach suggested by deraadt@ weeks ago.
- Commit:
d93c36af2b8111f07ff7645770d4714a2e5aef96- From:
- reyk <reyk@openbsd.org>
- Date:
Clean up the relayd headers with help of include-what-you-use and some
manual review. Based on common practice, relayd.h now includes the
necessary headers for itself.
OK benno@
- Commit:
2f6ec04dcc8d2ec0050455263b94308f36252825- From:
- deraadt <deraadt@openbsd.org>
- Date:
Adapt to <limits.h> universe.
ok millert
- Commit:
096ff28be0ad3eece8fa3b49f2ffed59e89f73fa- From:
- reyk <reyk@openbsd.org>
- Date:
Change the keyword "ssl" to "tls" to reflect reality since we
effectively disabled support for the SSL protocols. SSL remains a
common term describing SSL/TLS, there is some controvery about this
change, and the name really doesn't matter, but I feel confident about
it now.
(btw., sthen@ pointed out some historical context:
http://tim.dierks.org/2014/05/security-standards-and-name-changes-in.html)
OK benno@, with input from tedu@
- Commit:
28bd28ce02f4f0d97454036901f09cbedc246eeb- From:
- blambert <blambert@openbsd.org>
- Date:
Support exporting relayd statistics via AgentX/snmpd
This should be equivalent to the statistics available
via the various relaydctl show commands
okay benno@ reyk@
- Commit:
5a30f51bc00ea660a335280def096dbd5ff3e0bf- From:
- lteo <lteo@openbsd.org>
- Date:
Remove unnecessary netinet/in_systm.h include.
ok millert@
- Commit:
b7f7a948d01b98e0853f7d0c2efb6591025f657f- From:
- reyk <reyk@openbsd.org>
- Date:
This diff changes relayd to use the monotonic clock instead of
gettimeofday(). It was also bugging me for some time to have all
these checks of gettimeofday()'s return value: it should not fail. So
this diff introduces a void getmonotime(struct timeval *tv) that calls
clock_gettime(CLOCK_MONOTONIC, &ts) and converts the output to a
struct timeval that can be used with the existing code and the
timeval-specific timer functions (timerclear, timersub, ...). It does
not return a status but calls fatal() on error-that-should-not-happen.
ok sthen@ chris@
- Commit:
8680b5995e4296711f26344e3c92d526babdae97- From:
- giovanni <giovanni@openbsd.org>
- Date:
Fix a desynchronization on host change during a running check
closes pr system/6627
diff submitted by Martin Matuska, thanks
ok benno@
- Commit:
996c1f224a132a600773a1c96384d532af17d5b5- From:
- camield <camield@openbsd.org>
- Date:
Only start the child processes after all of them reported to have loaded
the config. Solves a race at startup time where processes can send status
messages about hosts that other processes don't know about yet.
(and have relayd abort with "desynchronized" or "invalid host id")
ok henning pyr deraadt
solves the problem ok from benno todd
- Commit:
af90452584bdbc339a3228632a6208fdf821aa96- From:
- camield <camield@openbsd.org>
- Date:
fix function names in fatalx() messages
ok mikeb
- Commit:
591e6ab59d9901a8a5a1eec8f4593ffc39656829- From:
- reyk <reyk@openbsd.org>
- Date:
Fix reload support in relayd(8) by reimplementing large parts of the
daemon infrastructure. The previous design made it fairly hard to
reload the complex data structures, especially relays and protocols.
One of the reasons was that the privsep'd relayd processes had two
ways of getting their configuration: 1) from memory after forking from
the parent process and 2) and (partially) via imsgs after reload. The
new implementation first forks the privsep'd children before the
parents loads the configuration and sends it via imsgs to them; so it
is only like 2) before. It is based on an approach that I first
implemented for iked(8) and I also fixed many bugs in the code.
Thanks to many testers including dlg@ sthen@ phessler@
ok pyr@ dlg@ sthen@
- Commit:
dbef7d4f82e95c334a131206f7d2ac02d3ef21bd- From:
- reyk <reyk@openbsd.org>
- Date:
Reorganize the relayd code to use the proc.c privsep API/commodity
functions that are based on work for iked and smtpd. This simplifies
the setup of privsep processes and moves some redundant and repeated
code to a single place - which is always good from a quality and
security point of view. The relayd version of proc.c is different to
the current version in iked because it uses 1:N communications between
processes, eg. a single parent process is talking to many forked relay
children while iked only needs 1:1 communications.
ok sthen@ pyr@
