| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
to send message to the child process. Do like we learned in httpd(8).
ok deraadt@
|
| |
|
|
|
|
| |
this should fix the problem with random ntpd(8) deaths.
ok deraadt@
|
| |
|
|
|
|
| |
with this change we get the pledge() ability back to the parent process.
some tweaks from and ok reyk@
|
| |
|
|
|
|
|
| |
obvious why it is implemented this way. The whole idea of constraints
is to isolate them as much as possible, in a semi-paranoid way.
OK rzalamena@
|
| |
|
|
|
|
|
| |
changes - map the previous configuration to the equivalent in the new
groups. This will be revisited post release.
Discussed with beck@
|
| |
|
|
|
|
| |
became more visible recently because a log_debug was changed to
log_warnx. Change it back for now.
ok jsing
|
| |
|
|
|
|
|
|
|
|
|
|
| |
ensure that we load the CA certificates and use tls_connect_servername()
so that we can verify the server we are connecting to (even though we've
already resolved the hostname). Also add additional warnings for TLS
connect and TLS write failures so that we know what is happening and why.
Lack of server name verification also reported by Luis M. Merino
<luismiguelmerino at gmail dot com> - thanks!
ok deraadt@ reyk@
|
| |
|
|
| |
ok deraadt@ reyk@
|
| |
|
|
|
|
| |
no other timezone than the fixed string "GMT". Avoid using strptime %Z,
which is nonstandard and can give surprising results on other operating
systems. ok deraadt@ giovanni@ bcook@
|
| |
|
|
|
|
|
|
|
|
|
| |
process management of the contraint processes has been moved from ntp
to the parent, for better privsep and pledge, but the ntp process
still attempted to kill the constraints on timeout directly. Fix this
regression by introducing a new imsg from ntp to the parent and the
related logic to kill a constraint at the right place.
Reported & tested by bcook@
Ok bcook@
|
| |
|
|
| |
OK bcook@ jung@
|
| | |
|
| |
|
|
|
|
| |
used by the constraint processes setup later (chroot, setuid...)
[late getpwnam discovered during a further audit]
ok millert
|
| |
|
|
|
|
| |
strndup().
ok millert@
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This helps the ntp process to a) give a better pledge(2) and to b)
keep the promise of "saving the world again... on time" by removing
the delays that have been introduced by expensive constraint forks.
The new design offers better privsep but introduces a few more imsgs
and runs a little bit more code in the privileged parent. The
privileged code is minimal, carefully checked, and does not attempt to
"parse" any contents; the forked constraints instantly drop all
privileges and pledge to "stdio inet".
OK beck@ deraadt@
|
| |
|
|
| |
"stdio inet". It took weeks to get to this point...
|
| |
|
|
| |
jontly with jsing@
|
| |
|
|
| |
ok jsing@
|
| |
|
|
| |
From Michael McConville
|
| |
|
|
| |
input doug@; OK beck@
|
| |
|
|
|
| |
patch from Mikolaj Kucharski
ok deraadt@
|
| |
|
|
|
|
| |
if this happens, we want to tear down all of ntpd, so that people will
report it, any such bug can be found, and fixed.
ok bcook
|
| |
|
|
|
|
|
| |
handler. It is run in a chroot, so tzset() wouldn't even succeed to
open the zone file. Found with tame.
OK deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
of being wrong, not the NTP responses, reset it and query it from all
the constraint servers all over again. This is turned out to be a bit
aggressive because it could get triggered with just a few bad NTP
peers in a larger pool. To avoid constant reconnections, scale the
error margin with the number of resolved NTP peers using peer_cnt * 4.
This way a single or a few outliers in a NTP pool cannot trigger
reconnecting to the constraint servers immediately. More NTP peers,
less reason to mistrust the constraint.
Found by dtucker@
OK deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
| |
addresses and try one after another until the connection succeeded -
based on the existing mechanism of "server". "constraint" previously
only tried to connect to the first returned address, aborted and
skipped the constraint on failure. In difference to "constraints"
(plural), it still only connects to one address at a time and not to
all of them at once.
Pointed out by rpe@
OK rpe@ deraadt@
|
| | |
|
| |
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
| |
allows to get constraint addresses even if network/DNS is not
available at startup (or system boot).
thumbs up & OK henning@
|
| |
|
|
| |
OK deraadt@
|
| |
|
|
|
|
|
|
|
| |
no need to request it ever again. The only exception is the
escalation of failed constraint checks that might lead into
re-requesting the constraint time from all servers. Adjust the states
accordingly.
OK henning@
|
|
|
time from HTTPS servers, by parsing the Date: header, and use the
median constraint time as a boundary to verify NTP responses. This
adds some level of authentication and protection against MITM attacks
while preserving the accuracy of the NTP protocol; without relying on
authentication options for NTP that are basically unavailable at
present. This is an initial implementation and the semantics will be
improved once it is in the tree.
Discussed with deraadt@ and henning@
OK henning@
|