Re: [Linuxptp-devel] [PATCH 2/4] Add sock servo.

2022-11-10 Thread Jacob Keller
On 11/10/2022 7:19 AM, Miroslav Lichvar wrote: Add a second servo that provides samples to other processes in order to control the clock. The chrony SOCK refclock uses a Unix domain socket instead of a shared memory segment. The main advantage over the NTP SHM refclock is better security as t

[Linuxptp-devel] [PATCH 3/4] timemaster: Replace shm_segment with refclock_id.

2022-11-10 Thread Miroslav Lichvar
Replace the shm_segment number with a more general refclock_id and shift by first_shm_index only in the SHM-specific context to allow other types of refclocks to be used. Signed-off-by: Miroslav Lichvar --- timemaster.c | 48 +++- 1 file changed, 27 in

[Linuxptp-devel] [PATCH 0/4] Support for chrony SOCK refclock

2022-11-10 Thread Miroslav Lichvar
This patchset fixes a bug in man page, adds a new servo for the chrony SOCK refclock protocol as a more secure alternative to the NTP SHM (the commit message describes the issue), and updates timemaster to use it. Miroslav Lichvar (4): Remove obsolete statement in ptp4l man page. Add sock serv

[Linuxptp-devel] [PATCH 2/4] Add sock servo.

2022-11-10 Thread Miroslav Lichvar
Add a second servo that provides samples to other processes in order to control the clock. The chrony SOCK refclock uses a Unix domain socket instead of a shared memory segment. The main advantage over the NTP SHM refclock is better security as the socket can be located in a directory with restric

[Linuxptp-devel] [PATCH 1/4] Remove obsolete statement in ptp4l man page.

2022-11-10 Thread Miroslav Lichvar
The NTP SHM number is no longer the PTP domain number. It was made configurable and the default value is 0. Fixes: 3760f8b6537e ("Add option to set NTP SHM segment number.") Signed-off-by: Miroslav Lichvar --- ptp4l.8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ptp4l.

[Linuxptp-devel] [PATCH 4/4] timemaster: Use sock servo with chrony.

2022-11-10 Thread Miroslav Lichvar
If chronyd is selected as the NTP program, use the SOCK refclock instead of SHM to improve security and reduce delay in receiving of samples. Signed-off-by: Miroslav Lichvar --- timemaster.8 | 10 - timemaster.c | 57 +++- 2 files changed,