mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
sd-bus: don't inherit connection creds into message creds when we have a direct connection
It's never a good idea, let's just not do it, not even on dierct connections.
This commit is contained in:
parent
3f72b427b4
commit
038f9863e2
@ -915,8 +915,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->bus_client && bus->ucred_valid ? &bus->ucred : NULL,
|
||||
!bus->bus_client && !isempty(bus->label) ? bus->label : NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&t);
|
||||
if (r < 0) {
|
||||
free(b);
|
||||
|
Loading…
Reference in New Issue
Block a user