diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-12 01:03:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-12 01:07:17 +0100 |
commit | a8f11321c209830a35edd0357e8def5d4437d854 (patch) | |
tree | 6624318fbfc07042729a69ad29b4e0ffc2402263 /src/dbus-common.h | |
parent | e75c058023a7e130599f5a3ae2981540d8e397c8 (diff) |
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
Diffstat (limited to 'src/dbus-common.h')
-rw-r--r-- | src/dbus-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |