From 038f9863e22295d0e22b3b79a6d54f7086525ba2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 23 Apr 2015 13:37:03 +0200 Subject: 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. --- src/libsystemd/sd-bus/bus-socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c index 6a55f9bfb4..94a5c04c8b 100644 --- a/src/libsystemd/sd-bus/bus-socket.c +++ b/src/libsystemd/sd-bus/bus-socket.c @@ -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); -- cgit v1.2.3-54-g00ecf