Systemd/src/timesync
Lennart Poettering 3691bcf3c5 tree-wide: use recvmsg_safe() at various places
Let's be extra careful whenever we return from recvmsg() and see
MSG_CTRUNC set. This generally means we ran into a programming error, as
we didn't size the control buffer large enough. It's an error condition
we should at least log about, or propagate up. Hence do that.

This is particularly important when receiving fds, since for those the
control data can be of any size. In particular on stream sockets that's
nasty, because if we miss an fd because of control data truncation we
cannot recover, we might not even realize that we are one off.

(Also, when failing early, if there's any chance the socket might be
AF_UNIX let's close all received fds, all the time. We got this right
most of the time, but there were a few cases missing. God, UNIX is hard
to use)
2020-04-23 09:41:47 +02:00
..
80-systemd-timesync.list timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
meson.build timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
org.freedesktop.timesync1.conf timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
org.freedesktop.timesync1.service timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
test-timesync.c tests: use a helper function to parse environment and open logging 2018-09-14 09:29:57 +02:00
timesyncd-bus.c tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
timesyncd-bus.h timesync: expose manager properties on bus 2018-05-03 18:05:14 +09:00
timesyncd-conf.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-conf.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd-gperf.gperf timesync: fix typo 2018-01-10 20:52:59 +09:00
timesyncd-manager.c tree-wide: use recvmsg_safe() at various places 2020-04-23 09:41:47 +02:00
timesyncd-manager.h tree-wide: replace 'unsigned int' with 'unsigned' 2018-10-19 22:19:12 +02:00
timesyncd-ntp-message.h timesync: save and expose NTP responce on bus 2018-05-03 18:05:14 +09:00
timesyncd-server.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
timesyncd-server.h tree-wide: drop double newline 2018-06-29 11:02:17 +09:00
timesyncd.c codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
timesyncd.conf.in timesync: make poll interval configurable 2017-11-08 01:47:38 +09:00