From owner-freebsd-security@freebsd.org Wed Jul 1 21:01:50 2015 Return-Path: Delivered-To: freebsd-security@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71549992B85 for ; Wed, 1 Jul 2015 21:01:50 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FE421B31 for ; Wed, 1 Jul 2015 21:01:49 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t61L1nvX006603 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 1 Jul 2015 14:01:49 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t61L1mVF006602; Wed, 1 Jul 2015 14:01:48 -0700 (PDT) (envelope-from jmg) Date: Wed, 1 Jul 2015 14:01:48 -0700 From: John-Mark Gurney To: Peter Jeremy Cc: Leif Pedersen , "freebsd-security@freebsd.org" Subject: Re: Leap Second Message-ID: <20150701210148.GF96349@funkthat.com> References: <1435154274.964221.306546033.052903CD@webmail.messagingengine.com> <86bnfwxa4m.fsf@nine.des.no> <1435758941.105242.312562265.3103CECB@webmail.messagingengine.com> <20150701202728.GA9532@server.rulingia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150701202728.GA9532@server.rulingia.com> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Wed, 01 Jul 2015 14:01:49 -0700 (PDT) X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 21:01:50 -0000 Peter Jeremy wrote this message on Thu, Jul 02, 2015 at 06:27 +1000: > On 2015-Jul-01 12:46:21 -0500, Leif Pedersen wrote: > >Is there a reasonable way to enable awareness of leap-seconds while syncing > >with ntpd? That is to say, how can I get the system to include leap-seconds > >in calculating `date +%s`, without having `date` be off by 26[1] seconds? > > ntpd(8) has provision for specifying a leapsecond file which presumably > makes it leap-second aware. I haven't looked into the details. > > There's also posix2time(3) to convert between a TAI-based time_t and a > POSIX-based time_t. Though from my reading of the code, you need to have TZ files compiled w/ leap seconds which FreeBSD doesn't do by default... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."