]> git.ipfire.org Git - thirdparty/chrony.git/commit
sys: add OpenBSD support
authorThomas Kupper <tom@kupper.org>
Wed, 4 Feb 2026 21:09:09 +0000 (22:09 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 25 Feb 2026 11:35:50 +0000 (12:35 +0100)
commit4ddc6b334df9ae4ffba693cde2e1617e9bc59eda
treea3ab4e3ecb0c4d27a0cb1006168e3944b54460e2
parent9a57ef8dbf7d91f745c95b3a06d318994a7b61c8
sys: add OpenBSD support

Add OpenBSD support, including pledge(2) support by implementing
SYS_EnableSystemCallFilter().

This commit depends on the addition of AdjustFreq() privops and the
addtion of invoking SYS_EnableSystemCallFilter() from PRV_StartHelper().

Only system call filter levels on/off' are supported. Setting level
to 0 disables the filter and setting it to 1 enables it.

Update the documentation to reflect that OpenBSD supports:
- the SCHED_FIFO real-time scheduler (option -P)
- locking chronyd into memory (option -m)
- reload sample history of servers and ref clocks (option -r)
- forking into two process when run as non-root user (option -u)
- maxdrift/maxslewrate of 100000.
README
configure
doc/chrony.conf.adoc
doc/chronyd.adoc
sys.c
sys_openbsd.c [new file with mode: 0644]
sys_openbsd.h [new file with mode: 0644]
test/system/099-scfilter
test/system/199-scfilter