Systemd/src/coredump
Lennart Poettering fb29cdbef2 tree-wide: make sure our control buffers are properly aligned
We always need to make them unions with a "struct cmsghdr" in them, so
that things properly aligned. Otherwise we might end up at an unaligned
address and the counting goes all wrong, possibly making the kernel
refuse our buffers.

Also, let's make sure we initialize the control buffers to zero when
sending, but leave them uninitialized when reading.

Both the alignment and the initialization thing is mentioned in the
cmsg(3) man page.
2020-05-07 14:39:44 +02:00
..
coredump-vacuum.c headers: remove unneeded includes from util.h 2019-03-27 11:53:12 +01:00
coredump-vacuum.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
coredump.c tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
coredump.conf build-sys: move coredump logic into subdir of its own 2016-02-10 14:32:27 +01:00
coredumpctl.c coredump: add zstandard support for coredumps 2020-05-04 10:59:43 +02:00
meson.build coredump: only install coredump.conf when ENABLED_COREDUMP=true 2018-11-02 14:31:12 +01:00
stacktrace.c coredump: Include module offsets in stack traces 2019-10-18 15:26:47 +02:00
stacktrace.h coredump: slighlty simplify stack trace generation logic 2019-06-27 19:01:32 +02:00
test-coredump-vacuum.c Drop my copyright headers 2018-06-14 13:03:20 +02:00