Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Aug 2016 00:16:24 -0700
From:      Andreas Ott <andreas@naund.org>
To:        Cy Schubert <Cy.Schubert@komquats.com>
Cc:        Ian Lepore <ian@freebsd.org>, Andreas Ott <andreas@naund.org>, Kevin Oberman <rkoberman@gmail.com>, Randy Bush <randy@psg.com>, FreeBSD Stable <freebsd-stable@freebsd.org>, Cy Schubert <cy@freebsd.org>, pfg@freebsd.org
Subject:   Re: leapsecond file
Message-ID:  <20160825001624.H1223@naund.org>
In-Reply-To: <201608250155.u7P1tbda010990@slippy.cwsent.com>; from Cy.Schubert@komquats.com on Wed, Aug 24, 2016 at 06:55:37PM -0700
References:  <ian@freebsd.org> <201608250155.u7P1tbda010990@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Wed, Aug 24, 2016 at 06:55:37PM -0700, Cy Schubert wrote:
> The file was obtained from USNO. Except for a $FreeBSD$ and a minor 
> spelling fix that was brought forward from r298087, the file was not 
> altered in any way. One of the problems is that the minor spelling fix 
> invalidated the secure hash at the end of the file, ntpd ignores the file. 
> r298087 needs to be reverted. (cc'd pfg@) I'll revert r298087.

If I read the hash instructions towards the bottom of the file, you should
be good to fix typos or add $FreeBSD$ in a comment line, the only lines
that are hashed are the data and time stamps. Syslog shows that during the
last week the hash was considered OK on the file in 10.3-p7 with
 $FreeBSD: releng/10.3/etc/ntp/leap-seconds 295461 2016-02-10 07:16:17Z cy $ .

2016 Aug 18 18:26:07 [ntp.notice] mon leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
2016 Aug 18 18:26:07 [ntp.notice] mon leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2016-06-01T00:00:00Z last=2015-07-01T00:00:00Z ofs=36
2016 Aug 18 18:26:07 [ntp.err] mon leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 79 days ago
2016 Aug 18 18:26:07 [console.info] mon Aug 18 18:26:07 mon ntpd[584]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 79 days ago

> I'll revert pfg's spelling fixup which I had brought forward and I'll need 
> to remove $FreeBSD$ as well, validating the hash again. Additional code 
> will need to be added to rc.d/ntpd to replace the copy in /var/db if 
> $FreeBSD$ exists.

Please check the hash instructions, I don't think it's needed to remove that.

-andreas
-- 
Andreas Ott   K6OTT   +1.408.431.8727   andreas@naund.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160825001624.H1223>