Yo Miroslav! On Thu, 26 Feb 2015 07:24:26 +0100 Miroslav Lichvar <mlich...@redhat.com> wrote:
> On Wed, Feb 25, 2015 at 04:07:05PM -0800, Gary E. Miller wrote: > > # ipcs -m > > > > ------ Shared Memory Segments -------- > > key shmid owner perms bytes nattch > > status 0x4e545030 0 root 600 96 > > 2 0x4e545031 32769 root 600 96 > > 2 0x4e545032 65538 root 600 96 2 > > ^^^ > > > > Ah. I started phc2sys before chronyd and phc2sys created the > > ntpshm with the wrong permissions! NTP2 should be perms 666, not > > 600. That should be an easy bug to fix. > > phc2sys and chronyd both create all segments with 600 permissions. In > chronyd this is configurable with the mode refclock option, but the > default is always 600. As everything is started as root I'm not sure > why would 666 be needed. Yes, but that is not the case for ntpd where segments 2 and beyond are created 666. Regardless of why, it has caused me problems. My problem description may not be perfect, but there is a problem there. > > So, stop everything, and change to a new ntpd that can read from a > > 600 > > Hm, why would ntpd or chronyd not be able to read from a 600 segment? Because they dropped root. > They are both started as root and open the segment before they drop > the root privileges. Ah, no, not always. gpsd opens shmid as needed in control mode. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701 g...@rellim.com Tel:+1(541)382-8588 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel