1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-22 01:50:10 +03:00

bus-proxy: restore operation in non-kdbus mode

bus-proxyd is not only the bridge between legacy dbus clients and kdbus
but is also used to access remote dbus servers via ssh. Let's make sure
it actually works for that.
This commit is contained in:
Lennart Poettering
2014-07-02 17:12:24 +02:00
parent 387066c2e5
commit 62bb05f64f

View File

@ -47,7 +47,7 @@
#include "capability.h"
#include "bus-policy.h"
static const char *arg_address = KERNEL_SYSTEM_BUS_PATH;
static const char *arg_address = DEFAULT_SYSTEM_BUS_PATH;
static char *arg_command_line_buffer = NULL;
static bool arg_drop_privileges = false;
static char **arg_configuration = NULL;
@ -281,6 +281,9 @@ static int process_policy(sd_bus *a, sd_bus *b, sd_bus_message *m) {
assert(b);
assert(m);
if (!a->is_kernel)
return 0;
if (!sd_bus_message_is_method_call(m, "org.freedesktop.DBus.Properties", "GetAll"))
return 0;
@ -467,6 +470,9 @@ static int process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m) {
assert(b);
assert(m);
if (!a->is_kernel)
return 0;
if (!streq_ptr(sd_bus_message_get_destination(m), "org.freedesktop.DBus"))
return 0;