sd-bus: fix parsing of KDBUS_CMD_LIST
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 30 Jul 2015 12:12:09 +0000 (14:12 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 30 Jul 2015 12:12:09 +0000 (14:12 +0200)
commit89c240e3a5de561ec7164507b41121aecc299b08
treef69bc06a0e3aff8d1b126dacbcb14b3d2f87031f
parent8388607b5851574e50a6e65db98135b793b08910
sd-bus: fix parsing of KDBUS_CMD_LIST

We *must not* assume that an entry returned by KDBUS_CMD_LIST only
carries a single KDBUS_ITEM_OWNED_NAME. Similarly, we already parse
multiple such items for message-metadata, so make sure we support the
same on KDBUS_CMD_LIST.

By relying on the kernel to return all names separately, we limit the
kernel API significantly. Stop this and let the kernel decide how to
return its data.
src/bus-proxyd/driver.c
src/libsystemd/sd-bus/bus-control.c