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. > 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? They are both started as root and open the segment before they drop the root privileges. -- Miroslav Lichvar ------------------------------------------------------------------------------ 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