Systemd/src/machine
Lennart Poettering d68c645bd3 core: rework serialization
Let's be more careful with what we serialize: let's ensure we never
serialize strings that are longer than LONG_LINE_MAX, so that we know we
can read them back with read_line(…, LONG_LINE_MAX, …) safely.

In order to implement this all serialization functions are move to
serialize.[ch], and internally will do line size checks. We'd rather
skip a serialization line (with a loud warning) than write an overly
long line out. Of course, this is just a second level protection, after
all the data we serialize shouldn't be this long in the first place.

While we are at it also clean up logging: while serializing make sure to
always log about errors immediately. Also, (void)ify all calls we don't
expect errors in (or catch errors as part of the general
fflush_and_check() at the end.
2018-10-26 10:52:41 +02:00
..
image-dbus.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
image-dbus.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
machine-dbus.c tree-wide: port various bits over to open_parent() 2018-07-23 13:38:18 +02:00
machine-dbus.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
machine.c core: rework serialization 2018-10-26 10:52:41 +02:00
machine.h machine: use size_t for array sizes (#10309) 2018-10-09 16:45:55 +09:00
machinectl.c tree-wide: uniformly bump RLIMIT_NOFILE in all our tools that access the journal 2018-10-16 16:33:55 +02:00
machined-dbus.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
machined.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
machined.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
meson.build Drop my copyright headers 2018-06-14 13:03:20 +02:00
operation.c tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
operation.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
org.freedesktop.machine1.conf machined: port machined's bus APIs to use new image metadata API 2017-11-20 16:43:15 +01:00
org.freedesktop.machine1.policy meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
org.freedesktop.machine1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
test-machine-tables.c Drop my copyright headers 2018-06-14 13:03:20 +02:00