Blame SOURCES/0194-sd-bus-don-t-inherit-connection-creds-into-message-c.patch
|
|
923a60 |
From 61a6ce79defd59fee00cd2bc28d58f7c3e637ae2 Mon Sep 17 00:00:00 2001
|
|
|
923a60 |
From: Lennart Poettering <lennart@poettering.net>
|
|
|
923a60 |
Date: Thu, 23 Apr 2015 13:37:03 +0200
|
|
|
923a60 |
Subject: [PATCH] sd-bus: don't inherit connection creds into message creds
|
|
|
923a60 |
when we have a direct connection
|
|
|
923a60 |
|
|
|
923a60 |
It's never a good idea, let's just not do it, not even on dierct
|
|
|
923a60 |
connections.
|
|
|
923a60 |
|
|
|
923a60 |
Conflicts:
|
|
|
923a60 |
src/libsystemd/sd-bus/bus-socket.c
|
|
|
923a60 |
|
|
|
923a60 |
Cherry-picked from: 038f9863
|
|
|
923a60 |
Related: #1230190
|
|
|
923a60 |
---
|
|
|
923a60 |
src/libsystemd/sd-bus/bus-socket.c | 4 ++--
|
|
|
923a60 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
923a60 |
|
|
|
923a60 |
diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
|
|
|
923a60 |
index d00cd014eb..a3c3a45b46 100644
|
|
|
923a60 |
--- a/src/libsystemd/sd-bus/bus-socket.c
|
|
|
923a60 |
+++ b/src/libsystemd/sd-bus/bus-socket.c
|
|
|
923a60 |
@@ -900,8 +900,8 @@ static int bus_socket_make_message(sd_bus *bus, size_t size) {
|
|
|
923a60 |
r = bus_message_from_malloc(bus,
|
|
|
923a60 |
bus->rbuffer, size,
|
|
|
923a60 |
bus->fds, bus->n_fds,
|
|
|
923a60 |
- !bus->bus_client && bus->ucred_valid ? &bus->ucred : NULL,
|
|
|
923a60 |
- !bus->bus_client && bus->label[0] ? bus->label : NULL,
|
|
|
923a60 |
+ NULL,
|
|
|
923a60 |
+ NULL,
|
|
|
923a60 |
&t);
|
|
|
923a60 |
if (r < 0) {
|
|
|
923a60 |
free(b);
|