summaryrefslogtreecommitdiff
path: root/src/bus-driverd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-27 21:34:54 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-27 21:34:54 +0100
commitaf08d2f9cde8f46d9d3e731dbd1f06ffb3b08942 (patch)
tree0906d724d8d6f2ed59ed8c4fef021f267810b696 /src/bus-driverd
parent968d3d242cc9256eaca9a18155a744b575159cbd (diff)
bus: add API calls for connecting to starter bus
Add new calls sd_bus_open() and sd_bus_default() for connecting to the starter bus a service was invoked for, or -- if the process is not a bus-activated service -- the appropriate bus for the scope the process has been started in.
Diffstat (limited to 'src/bus-driverd')
-rw-r--r--src/bus-driverd/bus-driverd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bus-driverd/bus-driverd.c b/src/bus-driverd/bus-driverd.c
index 319596a40b..acb5e6ba00 100644
--- a/src/bus-driverd/bus-driverd.c
+++ b/src/bus-driverd/bus-driverd.c
@@ -847,11 +847,7 @@ static int connect_bus(Context *c) {
assert(c);
- r = cg_pid_get_owner_uid(0, NULL);
- if (r < 0)
- r = sd_bus_default_system(&c->bus);
- else
- r = sd_bus_default_user(&c->bus);
+ r = sd_bus_default(&c->bus);
if (r < 0) {
log_error("Failed to create bus: %s", strerror(-r));
return r;