sd-bus: when credentials of the "org.freedesktop.DBus" service are queried return...
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 16:24:58 +0000 (18:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 16:24:58 +0000 (18:24 +0200)
commit51c7d5aa36e9ac0ec8ca6fef811a5f9deb7e4fd2
tree82c88aae32844ba71509e3144164bdc0cc44ecc0
parentf52b982cc9504bf89b035d4b55ac038a61226210
sd-bus: when credentials of the "org.freedesktop.DBus" service are queried return the bus owner's credentials

The bus driver service is always implemented by the owner of the bus,
hence let's shortcut the credential operation and use our cached data.
This makes sure things simply work, given that dbus itself doesn't
support GetConnectionSELinuxSecurityContext() on the bus driver name
itself.

Fixes: #6120
src/libsystemd/sd-bus/bus-control.c