mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/{chrony, ntp, openntpd}: turn off DNSSEC validation
We have a chicken and egg problem: validation of DNSSEC signatures doesn't work without a correct clock, but to set the correct clock we need to contact NTP servers which requires resolving a hostname, which would normally require DNSSEC validation. Let's break the cycle by excluding NTP hostname resolution from validation for now. Details:abf4e5c1d3Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commitc2db53caca) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
4f37a85aea
commit
6a1dc0757d
@@ -4,6 +4,10 @@ After=syslog.target network.target
|
|||||||
Conflicts=systemd-timesyncd.service
|
Conflicts=systemd-timesyncd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
# Turn off DNSSEC validation for hostname look-ups, since those need the
|
||||||
|
# correct time to work, but we likely won't acquire that without NTP. Let's
|
||||||
|
# break this chicken-and-egg cycle here.
|
||||||
|
Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
|
||||||
ExecStart=/usr/sbin/chronyd -n
|
ExecStart=/usr/sbin/chronyd -n
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/run/ntpd.pid
|
PIDFile=/run/ntpd.pid
|
||||||
|
# Turn off DNSSEC validation for hostname look-ups, since those need the
|
||||||
|
# correct time to work, but we likely won't acquire that without NTP. Let's
|
||||||
|
# break this chicken-and-egg cycle here.
|
||||||
|
Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
|
||||||
ExecStart=/usr/sbin/ntpd -g -p /run/ntpd.pid
|
ExecStart=/usr/sbin/ntpd -g -p /run/ntpd.pid
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ Conflicts=systemd-timesyncd.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
# Turn off DNSSEC validation for hostname look-ups, since those need the
|
||||||
|
# correct time to work, but we likely won't acquire that without NTP. Let's
|
||||||
|
# break this chicken-and-egg cycle here.
|
||||||
|
Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
|
||||||
ExecStart=/usr/sbin/ntpd -s -d
|
ExecStart=/usr/sbin/ntpd -s -d
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in New Issue
Block a user