chrony/test/system
Luke Valenta e6a0476eb7 socket: add support for systemd sockets
Before opening new IPv4/IPv6 server sockets, chronyd will check for
matching reusable sockets passed from the service manager (for example,
passed via systemd socket activation:
https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html)
and use those instead.

Aside from IPV6_V6ONLY (which cannot be set on already-bound sockets),
the daemon sets the same socket options on reusable sockets as it would
on sockets it opens itself.

Unit tests test the correct parsing of the LISTEN_FDS environment
variable.

Add 011-systemd system test to test socket activation for DGRAM and
STREAM sockets (both IPv4 and IPv6).  The tests use the
systemd-socket-activate test tool, which has some limitations requiring
workarounds discussed in inline comments.
2023-11-13 17:05:26 +01:00
..
001-minimal test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
002-extended test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
003-memlock test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
004-priority test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
006-privdrop test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
007-cmdmon cmdmon: add timestamp counters to serverstats report 2023-03-22 10:47:22 +01:00
008-confload conf: fix reloading modified sources specified by IP address 2023-09-12 08:02:36 +02:00
009-binddevice test: add 009-binddevice system test 2020-08-20 13:27:53 +02:00
010-nts test: fix 010-nts test for AES-GCM-SIV support 2023-06-01 14:52:51 +02:00
011-systemd socket: add support for systemd sockets 2023-11-13 17:05:26 +01:00
099-scfilter test: modify order of scfilter levels in system tests 2023-06-01 14:52:56 +02:00
100-clockupdate test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
101-rtc test: accept test result if RTC can't enable RTC_UIE_ON 2019-12-12 13:03:26 +01:00
102-hwtimestamp test: fix 102-hwtimestamp test for new ethtool 2020-08-20 16:19:13 +02:00
103-refclock test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
104-systemdirs test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
199-scfilter test: modify order of scfilter levels in system tests 2023-06-01 14:52:56 +02:00
run test: use env in shebang of system tests 2019-04-26 10:54:02 +02:00
test.common socket: add support for systemd sockets 2023-11-13 17:05:26 +01:00