gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] PPS and privilege-dropping


From: Gary E. Miller
Subject: Re: [gpsd-dev] PPS and privilege-dropping
Date: Thu, 17 Oct 2013 11:48:53 -0700

Yo Eric!

On Thu, 17 Oct 2013 08:03:43 -0400 (EDT)
address@hidden (Eric S. Raymond) wrote:

> I see that kernel PPS requires root for initialization, and have added
> a thread wait to avoid the race condition you reported where the
> threads for PPS devices given on the command line don't get to the
> /dev/pps devices before privileges are dropped.

ALL ntpd prefers root for initialization.  There is serious loss of
functionality when not initialized as root.  You need to expand your
thread wait to the entire ntpd initialization.  This will in fact make
the code much cleanner as you no longer need the new layer you added.
Just protect the entire thread.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]