Refuse dbus message paths longer than BUS_PATH_SIZE_MAX limit.
authorRiccardo Schirone <rschiron@redhat.com>
Mon, 4 Feb 2019 13:29:09 +0000 (14:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Feb 2019 19:07:45 +0000 (20:07 +0100)
commit61397a60d98e368a5720b37e83f3169e3eb511c4
treeb95fc90f09d4318878c0c7e1e55f5a7ae8fdabbe
parent5f06ba80183cc83a7077ca34582508528dd5bb26
Refuse dbus message paths longer than BUS_PATH_SIZE_MAX limit.

Even though the dbus specification does not enforce any length limit on the
path of a dbus message, having to analyze too long strings in PID1 may be
time-consuming and it may have security impacts.

In any case, the limit is set so high that real-life applications should not
have a problem with it.
src/libsystemd/sd-bus/bus-internal.c
src/libsystemd/sd-bus/bus-internal.h