sd-bus: if we receive an invalid dbus message, ignore and proceeed v239-13.2 v239-13.3
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Feb 2019 15:51:22 +0000 (16:51 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 8 Apr 2019 11:43:30 +0000 (13:43 +0200)
commit4573166e9384f4ffe17a87f7b41aacc4cfe8bad0
treeeffe245edadff43a99f304b64cb426e82606ba03
parent268f983d2a9e093f1d432f4c530ed51f08f14870
sd-bus: if we receive an invalid dbus message, ignore and proceeed

dbus-daemon might have a slightly different idea of what a valid msg is
than us (for example regarding valid msg and field sizes). Let's hence
try to proceed if we can and thus drop messages rather than fail the
connection if we fail to validate a message.

Hopefully the differences in what is considered valid are not visible
for real-life usecases, but are specific to exploit attempts only.

(cherry-picked from commit 6d586a13717ae057aa1b4127400c3de61cd5b9e7)

Related: #1678641
src/libsystemd/sd-bus/bus-socket.c