sd-bus: use the new information in the client's sockaddr in the creds structure
authorLennart Poettering <lennart@poettering.net>
Fri, 5 May 2023 19:43:57 +0000 (21:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 May 2023 10:08:41 +0000 (12:08 +0200)
commitc32f9648cc058c96b2ab927b73af3fa28f7c69f6
tree8ac98f5a3cb082836785162ed9bfd22ced9cbe2a
parenta0cb33581630a54c89d088d36eb3bf6cf7459cd7
sd-bus: use the new information in the client's sockaddr in the creds structure

Now that clients might convey comm/description strings via the sockaddr,
let's actually use them on the other side, read the data via
getpeername() parse it, and include it in the "owner" creds (which is
how we call the peer's creds).
src/libsystemd/sd-bus/bus-control.c
src/libsystemd/sd-bus/bus-internal.h
src/libsystemd/sd-bus/bus-socket.c