Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
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:
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:
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:
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:
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:
dc2f787fcea89b92a6b72e8b198262e0b0b3fa50- From:
- reyk <reyk@openbsd.org>
- Date:
sync copyright to reality according to my last changes
- Commit:
a6ecc53f787f0595443e994c8b3a6ac7fc2cd07a- From:
- reyk <reyk@openbsd.org>
- Date:
Check strlcpy of the script path names for overflow and use the size of the
destination buffer instead of the source buffer as the argument.
- Commit:
12566ac92762513101e5089e544a8ac2310db52f- From:
- reyk <reyk@openbsd.org>
- Date:
Add additional check to prevent running scripts when not configured.
- Commit:
1ffcf252d3daaf79b3482723fe5f5e7ea733eb20- From:
- reyk <reyk@openbsd.org>
- Date:
fix "check script" by sending all required information to the parent.
- 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@
- Commit:
da5cdd0a519a852c8e807b8fd75e472ed3a2efe0- From:
- sthen <sthen@openbsd.org>
- Date:
If 'check script' doesn't exit(), treat the service as 'down' rather
than 'unknown'. Fixes a problem where the script is killed due to expiry
of the interval timer. ok pyr@ deraadt@
- Commit:
eabfa908defdce21821f2b1b1107aea2f7ae7e4f- From:
- pyr <pyr@openbsd.org>
- Date:
4 handed diff with eric:
Stop pushing event handling in the imsg framework.
Instead, provide a small glue layer on top of both imsg and libevent.
This finally clearly separates event handling and imsg construction.
Sidetrack bonus: remove the mega-ugly hack of having a dummy imsg_event_add
stub in relayctl.
This will make bgpd (and thus henning) happy. Next up are smtpd and ospfd.
ok eric@
- Commit:
cdaf52625697c7cf30a4bab667b60646f61e39a8- From:
- pyr <pyr@openbsd.org>
- Date:
Make imsg completely async model agnostic by not requiring an
imsg_event_add function to be provided (which ended up being a named
callback).
Instead provide a wrapper in the daemon and call that everywhere.
Previsously discussed with the usual suspects,
ok eric@ though not too happy about the function name
(imsg_compose_event).
- Commit:
6e8f642d9683d711279f376e833cc38c0ac0f027- From:
- reyk <reyk@openbsd.org>
- Date:
close filedescriptors with closefrom(STDERR_FILENO + 1) before executing
the script to prevent access to internal processes.
From jacekm@
- Commit:
b2665266d92bceb7dc70464de456400de7179d27- From:
- reyk <reyk@openbsd.org>
- Date:
change the way relayd reports check results: instead of logging an
arbitrary string in debugging mode, it will store an error code
(HCE_*) for each host. the error code can be translated to a string
(in log.c) for debugging but it will also be passed to relayctl via
the control socket.
from a user point of view, this will print a human-readable error
message in the "relayctl show hosts" output if a host is down because
the check failed. the relayctl(8) manpage includes detailed
explanations of the error messages including mitigations for the
most-common problems.
ok jmc@ (manpages)
ok phessler@
- Commit:
86553cb4791e33f45ce1d31df3d051b53603486e- From:
- reyk <reyk@openbsd.org>
- Date:
bump copyright
- Commit:
6d0767ae5060ef5776c15fb1b7f05403ccfeba9c- From:
- reyk <reyk@openbsd.org>
- Date:
hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying
- Commit:
e1f9d23174ae91964e6493328526f1c855cfedf1- From:
- reyk <reyk@openbsd.org>
- Date:
sort includes, adjust to style(9)
- Commit:
581a343041497fe96781c319430b75c80b656f43- From:
- deraadt <deraadt@openbsd.org>
- Date:
avoid errno trashing in signal handler
- Commit:
09bb98bbf0e105decaf2b4fe250bfc7859f18607- From:
- msf <msf@openbsd.org>
- Date:
put the fd passing from bgpd back in to hoststated's version of imsg,
needed for layer 7 reload support.
ok pyr@
- Commit:
292100ef9632bbedf4a1e5ae8d418fbc9772d259- From:
- reyk <reyk@openbsd.org>
- Date:
add a new check method which allows to run external scripts/programs
for custom evaluations.
pyr agrees to put it in now but to do some improvements of the timeout
handling later.
