mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
bus: when we are connected to a bus, then do not assume peer creds are useful as message creds
This commit is contained in:
parent
02bb6cda87
commit
e7f7a1b022
@ -923,8 +923,8 @@ static int bus_socket_make_message(sd_bus *bus, size_t size) {
|
||||
r = bus_message_from_malloc(bus,
|
||||
bus->rbuffer, size,
|
||||
bus->fds, bus->n_fds,
|
||||
bus->ucred_valid ? &bus->ucred : NULL,
|
||||
bus->label[0] ? bus->label : NULL,
|
||||
!bus->bus_client && bus->ucred_valid ? &bus->ucred : NULL,
|
||||
!bus->bus_client && bus->label[0] ? bus->label : NULL,
|
||||
&t);
|
||||
if (r < 0) {
|
||||
free(b);
|
||||
|
Loading…
Reference in New Issue
Block a user