core: add Timestamping= option for socket units
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Oct 2020 16:39:14 +0000 (17:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2020 13:12:39 +0000 (14:12 +0100)
commit9b1915256cb33940a72a7c39444ebac7f906603b
tree5c1bea58246c3918e2067c3c3b7803b87157a318
parenta2b06dbe15871f41deb107ee30a784e8a1ceb951
core: add Timestamping= option for socket units

This adds a way to control SO_TIMESTAMP/SO_TIMESTAMPNS socket options
for sockets PID 1 binds to.

This is useful in journald so that we get proper timestamps even for
ingress log messages that are submitted before journald is running.

We recently turned on packet info metadata from PID 1 for these sockets,
but the timestamping info was still missing. Let's correct that.
src/core/dbus-socket.c
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/socket.c
src/core/socket.h
src/shared/bus-unit-util.c