Re: REFCLOCK rises again

2019-03-07 Thread Gary E. Miller via devel
Yo Hal! On Thu, 07 Mar 2019 13:17:25 -0800 Hal Murray via devel wrote: > Gary said: > >> Or, we could fix SHM so the client side is read-only. > > As Eric has said: Changing the SHM protocol is not an option. > > I believe there is a reasonable way to do it. > > GPSD writes to both old an

Re: REFCLOCK rises again

2019-03-07 Thread Hal Murray via devel
Gary said: >> Or, we could fix SHM so the client side is read-only. > As Eric has said: Changing the SHM protocol is not an option. I believe there is a reasonable way to do it. GPSD writes to both old and new forms. ntpd supports two drivers (or a mode bit) If you want to add SHM via HUPing

Re: REFCLOCK rises again

2019-03-07 Thread Gary E. Miller via devel
Yo Hal! On Thu, 07 Mar 2019 12:25:52 -0800 Hal Murray via devel wrote: > Gary said: > >> What would ntpd need root for? > > SHM(0) and SHM(1). > > That would mean that you would have to restart ntpd to add SHM > drivers. > > Or, we could fix SHM so the client side is read-only. As Eric ha

Re: REFCLOCK rises again

2019-03-07 Thread Hal Murray via devel
Gary said: >> What would ntpd need root for? > SHM(0) and SHM(1). That would mean that you would have to restart ntpd to add SHM drivers. Or, we could fix SHM so the client side is read-only. The comments in ntpd.c #ifdef ENABLE_EARLY_DROPROOT /* drop root privileges */ /* This

Re: REFCLOCK rises again

2019-03-07 Thread Gary E. Miller via devel
Yo Hal! On Thu, 07 Mar 2019 11:49:21 -0800 Hal Murray via devel wrote: > What would ntpd need root for? SHM(0) and SHM(1). RGDS GARY --- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@re

Re: REFCLOCK rises again

2019-03-07 Thread Hal Murray via devel
> One problem that just occured to me is that any actual restart will have to > be done with dropped privileges already. The PID shouldn't change during > restart anyway, so maybe that's taken care of already. Currently, one of the privs it drops is being able to change privs so there is no w

Re: REFCLOCK rises again

2019-03-07 Thread Achim Gratz via devel
Hal Murray via devel writes: > Achim said: >> In a nutshell, SIGHUP is already taken, but USR1 and USR2 are still >> available. Thte idea is that one of these does the equivalent of >> re-configuring via ntpq or a restart without loss of internal state (as far >> as possible). > > USR1 and USR2 a

Re: REFCLOCK rises again

2019-03-06 Thread Hal Murray via devel
Achim said: > In a nutshell, SIGHUP is already taken, but USR1 and USR2 are still > available. Thte idea is that one of these does the equivalent of > re-configuring via ntpq or a restart without loss of internal state (as far > as possible). USR1 and USR2 are already used to bump the debug le

Re: REFCLOCK rises again

2019-03-06 Thread Hal Murray via devel
James Browning said: > It would pave the way to be rid of the symmetric signing mess though. What symmetric signing mess? -- These are my opinions. I hate spam. ___ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/dev

Re: REFCLOCK rises again

2019-03-06 Thread James Browning via devel
On Wed, Mar 6, 2019, 10:15 AM Achim Gratz via devel wrote: > In a nutshell, SIGHUP is already taken, but USR1 and USR2 are still > available. Thte idea is that one of these does the equivalent of > re-configuring via ntpq or a restart without loss of internal state (as > far as possible). > USR

Re: REFCLOCK rises again

2019-03-06 Thread Achim Gratz via devel
Eric S. Raymond via devel writes: > This is so obviously the right thing that I'd like you to start an RFE > on the tracker about it. I'll treat implementation of that feature > as a prerequisite for removing ntpq :config. This is my periodic reminder that your tracker requires setting up an acco

Re: REFCLOCK rises again

2019-03-05 Thread Richard Laager via devel
On 3/5/19 1:26 PM, Gary E. Miller via devel wrote: >> and by what >> mechanism (i.e. are you using the Mode 6 writable parameter(s) being >> proposed for removal)? > > I do it with: killall ntpd The mode 6 changes aren't really relevant to you then. I see the security (and complexity) benefit to

Re: REFCLOCK rises again

2019-03-05 Thread Hal Murray via devel
> Maybe this isn't a good path to go down after all. This has been requested for a long time. I think it's worth the effort. We just have to find the right person (team?) and the right time. It may involve cleaning up that area, but that's not bad. Or maybe just rearranging, or maybe just a

Re: REFCLOCK rises again

2019-03-05 Thread Eric S. Raymond via devel
Hal Murray via devel : > The config file touches a lot of stuff. You basically have to diff the old > and new config file. Removing a server is simple. Adding a new server is > simple. Removing a tinker operation requires knowing what the default > is/was. > That's probably another slot in

Re: REFCLOCK rises again

2019-03-05 Thread Hal Murray via devel
Gary said: > But I would like something like SIGHUP to get ntpd to re-read the config file > and yet keep state. I think something like that is possible. It's not simple, but not horrible. The HUP logic is there. It works for a new leap file and new log file when it gets rotated. The confi

Re: REFCLOCK rises again

2019-03-05 Thread Matthew Selsky via devel
On Tue, Mar 05, 2019 at 12:46:29PM -0600, Richard Laager via devel wrote: > On 3/5/19 12:45 PM, Gary E. Miller via devel wrote: > > Yo Eric! > > > > On Tue, 5 Mar 2019 02:11:52 -0500 > > "Eric S. Raymond via devel" wrote: > > > >>> That would leave the configure option. I've never used it. >

Re: REFCLOCK rises again

2019-03-05 Thread Eric S. Raymond via devel
Achim Gratz via devel : > > You want to reconfure your ntpd? Bounce it. This won't happen often. > > Depends. While you're trying to figure out the correct fudge times for > instance you need a fully converged ntpd to see what's going on. If I > have to restart ntpd each time I want to adjust t

Re: REFCLOCK rises again

2019-03-05 Thread Gary E. Miller via devel
Yo Richard! On Tue, 5 Mar 2019 12:46:29 -0600 Richard Laager via devel wrote: > On 3/5/19 12:45 PM, Gary E. Miller via devel wrote: > > Yo Eric! > > > > On Tue, 5 Mar 2019 02:11:52 -0500 > > "Eric S. Raymond via devel" wrote: > > > >>> That would leave the configure option. I've never used

Re: REFCLOCK rises again

2019-03-05 Thread Richard Laager via devel
On 3/5/19 12:45 PM, Gary E. Miller via devel wrote: > Yo Eric! > > On Tue, 5 Mar 2019 02:11:52 -0500 > "Eric S. Raymond via devel" wrote: > >>> That would leave the configure option. I've never used it. >> >> I think we can justify both removals on security. If Mode 6 is a >> read-only channe

Re: REFCLOCK rises again

2019-03-05 Thread Gary E. Miller via devel
Yo Eric! On Tue, 5 Mar 2019 02:11:52 -0500 "Eric S. Raymond via devel" wrote: > > That would leave the configure option. I've never used it. > > I think we can justify both removals on security. If Mode 6 is a > read-only channel there can never be any exploits over it. That's > a significa

Re: REFCLOCK rises again

2019-03-05 Thread Achim Gratz via devel
Eric S. Raymond via devel writes: >> That would leave the configure option. I've never used it. I did. It's one of the few ways you can change (some) things around without haveing to re-start ntpd, with all the chaff that produces. > I think we can justify both removals on security. If Mode 6 i

Re: REFCLOCK rises again

2019-03-05 Thread Hal Murray via devel
> There is one interesting area that it doesn't cover. The kernel (on most > OSes) has an optional PLL that locks on to a PPS source. ntpd acts as a > sanity check and turns that on and off. If we want to use that mode, we need > a back channel, or an ugly wart in ntpd. We can probably get t

Re: REFCLOCK rises again

2019-03-04 Thread Eric S. Raymond via devel
Hal Murray : > > e...@thyrsus.com said: > >> Do you have an example of where we need to change a > >> driver variable on the fly? > > > No, I'm bothered because I'm (a) not sure we'll never need to do it, and (b) > > pretty sure what the Dread God Finagle will arrange if I assume we won't. > > :

Re: REFCLOCK rises again

2019-03-04 Thread Hal Murray via devel
e...@thyrsus.com said: >> Do you have an example of where we need to change a >> driver variable on the fly? > No, I'm bothered because I'm (a) not sure we'll never need to do it, and (b) > pretty sure what the Dread God Finagle will arrange if I assume we won't. :-) I just looked at the code.

Re: REFCLOCK rises again

2019-03-04 Thread Eric S. Raymond via devel
Hal Murray : > Do you have an example of where we need to change a driver variable on the > fly? No, I'm bothered because I'm (a) not sure we'll never need to do it, and (b) pretty sure what the Dread God Finagle will arrange if I assume we won't. :-) > >> We need to be able to run gpsmon while

Re: REFCLOCK rises again

2019-03-04 Thread Hal Murray via devel
e...@thyrsus.com said: > The two most obvious pain points here are the fudgetime variables. Some > refclocks set their own custom clock variables, as well; the generic driver > in particular, I think one other as well. The fudgetime variables can remain in ntpd. If the problem is the driver se

Re: REFCLOCK rises again

2019-03-04 Thread Eric S. Raymond via devel
Hal Murray : > > Eric said: > >> I don't understand. All I was trying to say is that splitting > >> out the refclock drivers to another process shouldn't make > >> any difference that is easily visible. > > > Maybe. The devil is in the details. > > I expect some issues around Mode 6. We'd still

Re: REFCLOCK rises again

2019-03-04 Thread Hal Murray via devel
Eric said: >> I don't understand. All I was trying to say is that splitting >> out the refclock drivers to another process shouldn't make >> any difference that is easily visible. > Maybe. The devil is in the details. > I expect some issues around Mode 6. We'd still need to exchange control >

Re: REFCLOCK rises again

2019-03-04 Thread Eric S. Raymond via devel
Hal Murray : > > e...@thyrsus.com said: > >> My strawman for REFCLOCKD is something like the touring test. > >> You can't tell the difference by poking around with ntpq. (Maybe > >> you don't get to poke too deep.) > > > It'd need its own UDP port. > > I don't understand. All I was trying to

Re: REFCLOCK rises again

2019-03-03 Thread Hal Murray via devel
e...@thyrsus.com said: >> My strawman for REFCLOCKD is something like the touring test. >> You can't tell the difference by poking around with ntpq. (Maybe >> you don't get to poke too deep.) > It'd need its own UDP port. I don't understand. All I was trying to say is that splitting out the

Re: REFCLOCK rises again

2019-03-03 Thread Eric S. Raymond via devel
Hal Murray : > > My strawman for REFCLOCKD is something like the touring test. You can't tell > the difference by poking around with ntpq. (Maybe you don't get to poke too > deep.) It'd need its own UDP port. > There are two parts to the refclock code. > > The first operates on the second t

Re: REFCLOCK rises again

2019-03-03 Thread Hal Murray via devel
My strawman for REFCLOCKD is something like the touring test. You can't tell the difference by poking around with ntpq. (Maybe you don't get to poke too deep.) There are two parts to the refclock code. The first operates on the second time scale. The main thread calls the refclock receive

Re: Go winnage (was: Re: REFCLOCK rises again)

2019-03-03 Thread Eric S. Raymond via devel
Hal Murray : > > Eric said: > > I meant to mention that there are actually *two* big benefits in prospect > > from a Go port. The obvious one is being able to junk a lot of fiddly, > > error-prone C memory-management stuff. > > I'm actually surprised that you haven't simplified a lot of that ye

Re: Go winnage (was: Re: REFCLOCK rises again)

2019-03-03 Thread Hal Murray via devel
Eric said: > I meant to mention that there are actually *two* big benefits in prospect > from a Go port. The obvious one is being able to junk a lot of fiddly, > error-prone C memory-management stuff. I'm actually surprised that you haven't simplified a lot of that yet. There are several plac

Go winnage (was: Re: REFCLOCK rises again)

2019-03-03 Thread Eric S. Raymond via devel
Ian Bruene via devel : > On 3/2/19 9:42 AM, Eric S. Raymond via devel wrote: > > REFCLOCKD benefits way down, cost almost unchanged. Every time I model > > this in my head the same answer comes out: bad idea. I think we have > > better complexity-reduction attacks available, like translating the >

Re: REFCLOCK rises again

2019-03-03 Thread Ian Bruene via devel
On 3/2/19 9:42 AM, Eric S. Raymond via devel wrote: REFCLOCKD benefits way down, cost almost unchanged. Every time I model this in my head the same answer comes out: bad idea. I think we have better complexity-reduction attacks available, like translating the whole thing to Go to get rid of a

REFCLOCK rises again

2019-03-02 Thread Eric S. Raymond via devel
This is redirected from a bug thread on issue #563. Hal Murray : > > Eric said: > > Sadly, I think the great refclock cleanup is mostly done. There are issues > > about the GPSD and SHM drivers but the days when I could dike out an > > obsolete > > driver a week are gone - we seem to be down to