summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-18 02:25:19 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-18 02:54:16 +0100
commit71ebe743a0ddbd4873967c00e20a57287ae12fc3 (patch)
tree07d1630e4d7fcde69da0c04db07287300471c5c8 /src/libsystemd-bus
parent45fd5e4d08c37c1b12e271474e89a770557ebb57 (diff)
bus: beef up driverd
Add validity checks for all parameters passed in. Implement ReleaseName and StartServiceByName(). Fix access control in vtable.
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/bus-protocol.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-protocol.h b/src/libsystemd-bus/bus-protocol.h
index 4726d9345d..5046d17a10 100644
--- a/src/libsystemd-bus/bus-protocol.h
+++ b/src/libsystemd-bus/bus-protocol.h
@@ -83,6 +83,12 @@ enum {
BUS_NAME_NOT_OWNER = 3,
};
+/* StartServiceByName returns */
+enum {
+ BUS_START_REPLY_SUCCESS = 1,
+ BUS_START_REPLY_ALREADY_RUNNING = 2,
+};
+
#define BUS_INTROSPECT_DOCTYPE \
"<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\"\n" \
"\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n"