summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-creds.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-11-27 12:52:13 +0100
committerLennart Poettering <lennart@poettering.net>2014-11-27 22:05:23 +0100
commitfb6d9b77a71a5f007392b754bf7d8e06a6bed69a (patch)
treef66a206d4dc42c0fa35e1d986783e288e53ec0e3 /src/libsystemd/sd-bus/bus-creds.c
parent38ce47e262fbb76b6f6514e8e80cacfc584bee5a (diff)
sd-bus: set creds info for "org.freedesktop.DBus.Local" generated messages, too
Diffstat (limited to 'src/libsystemd/sd-bus/bus-creds.c')
-rw-r--r--src/libsystemd/sd-bus/bus-creds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-creds.c b/src/libsystemd/sd-bus/bus-creds.c
index e3bdda83de..886e212fbf 100644
--- a/src/libsystemd/sd-bus/bus-creds.c
+++ b/src/libsystemd/sd-bus/bus-creds.c
@@ -563,6 +563,16 @@ _public_ int sd_bus_creds_get_well_known_names(sd_bus_creds *c, char ***well_kno
return 0;
}
+ if (c->well_known_names_local) {
+ static const char* const wkn[] = {
+ "org.freedesktop.DBus.Local",
+ NULL
+ };
+
+ *well_known_names = (char**) wkn;
+ return 0;
+ }
+
*well_known_names = c->well_known_names;
return 0;
}