]> git.ipfire.org Git - thirdparty/systemd.git/commit
Fix journald audit logging with fields > N_IOVEC_AUDIT_FIELDS.
authorYmrDtnJu <YmrDtnJu@users.noreply.github.com>
Fri, 21 Jan 2022 17:21:27 +0000 (18:21 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 21 Jan 2022 23:12:45 +0000 (23:12 +0000)
commitdf4ec48f45f518b6926e02ef4d77c8ed1a8b4e2c
tree463214f3be477326d44a03dbff01d8bb2dc77caa
parent76fb85316e9c629b79762457d9515cb632112a6a
Fix journald audit logging with fields > N_IOVEC_AUDIT_FIELDS.

ELEMENTSOF(iovec) is not the correct value for the newly introduced parameter m
to function map_all_fields because it is the maximum number of elements in the
iovec array, including those reserved for N_IOVEC_META_FIELDS. The correct
value is the current number of already used elements in the array plus the
maximum number to use for fields decoded from the kernel audit message.
src/journal/journald-audit.c