]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/bus-control.c
sd-bus: use GetConnectionCredentials() when querying credentials, if available 6201/head
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 16:52:47 +0000 (18:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 16:52:47 +0000 (18:52 +0200)
commit40f355052f0b64d35a01812f7954cfd992b97617
treeb0207fe8628a7eeebe9eb16d2c3107c97d79dedb
parent51c7d5aa36e9ac0ec8ca6fef811a5f9deb7e4fd2
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/libsystemd/sd-bus/bus-control.c