chiark / gitweb /
sd-bus: use GetConnectionCredentials() when querying credentials, if available
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 16:52:47 +0000 (18:52 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:53 +0000 (09:46 +0200)
commit8b5aa329e08b4f9e5ce8262e2edaa60455f5524f
treef4fb1f5f3a2857dfc3261c6cb51a522d1103c4a4
parenta9b6e5b5d6a83f2ec8c85b0896cdbdc505d51617
sd-bus: use GetConnectionCredentials() when querying credentials, if available

Newer D-Bus versions implement the GetConnectionCredentials() driver
call to get all connection creds in one go. Make use of that to reduce
the number of bus calls we do.

When only a single credential field is queried we will still use the old
calls, which we'll also use if the new call isn't implemented.
src/libelogind/sd-bus/bus-control.c