]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus/bus-message: more prudently verify it's SCM_RIGHTS that got truncated 40488/head
authorMike Yuan <me@yhndnzj.com>
Tue, 27 Jan 2026 18:10:41 +0000 (19:10 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 28 Jan 2026 02:34:25 +0000 (03:34 +0100)
commitc49c8331b978440434b9667582f087226c301eb5
tree9f9d3af4181fb65f90ff944b0b2e3a43a8c9d356
parentf452c324e71db04bbc754d9ae7f710ec168c8b44
sd-bus/bus-message: more prudently verify it's SCM_RIGHTS that got truncated

Follow-up for 6c8de404c98fb9b965cba68360c2db1e3f55b776

As discussed in
https://github.com/systemd/systemd/pull/40089#issuecomment-3672063388,
if any other control msg got truncated it's a genuine error, and
we should reject the message as a whole.
src/libsystemd/sd-bus/bus-message.c