From a8f11321c209830a35edd0357e8def5d4437d854 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 12 Mar 2011 01:03:13 +0100 Subject: systemctl: support remote and privileged systemctl access via SSH and pkexec This adds support for executing systemctl operations remotely or as privileged user while still running systemctl itself unprivileged and locally. This currently requires a D-Bus patch to work properly. https://bugs.freedesktop.org/show_bug.cgi?id=35230 --- src/dbus-common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dbus-common.h') diff --git a/src/dbus-common.h b/src/dbus-common.h index 9a66b78744..76333cd4f6 100644 --- a/src/dbus-common.h +++ b/src/dbus-common.h @@ -28,6 +28,9 @@ int bus_check_peercred(DBusConnection *c); int bus_connect(DBusBusType t, DBusConnection **_bus, bool *private_bus, DBusError *error); +int bus_connect_system_ssh(const char *user, const char *host, DBusConnection **_bus, DBusError *error); +int bus_connect_system_polkit(DBusConnection **_bus, DBusError *error); + const char *bus_error_message(const DBusError *error); #endif -- cgit v1.2.3-54-g00ecf