projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48ef41a
)
pid1: set org.freedesktop.systemd1 as sender service name for direct connections
author
Lennart Poettering
<lennart@poettering.net>
Wed, 20 Dec 2017 18:43:05 +0000
(19:43 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 5 Jan 2018 12:58:33 +0000
(13:58 +0100)
This way, clients can install the very same match on direct and broker
connections as in both cases the messages will originate from the o.f.s1
service.
src/core/dbus.c
patch
|
blob
|
history
diff --git
a/src/core/dbus.c
b/src/core/dbus.c
index
0d9f1f0
..
5e8a299
100644
(file)
--- a/
src/core/dbus.c
+++ b/
src/core/dbus.c
@@
-682,6
+682,12
@@
static int bus_on_connection(sd_event_source *s, int fd, uint32_t revents, void
return 0;
}
+ r = sd_bus_set_sender(bus, "org.freedesktop.systemd1");
+ if (r < 0) {
+ log_warning_errno(r, "Failed to set direct connection sender: %m");
+ return 0;
+ }
+
r = sd_bus_start(bus);
if (r < 0) {
log_warning_errno(r, "Failed to start new connection bus: %m");