From 71ebe743a0ddbd4873967c00e20a57287ae12fc3 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 18 Dec 2013 02:25:19 +0100
Subject: bus: beef up driverd

Add validity checks for all parameters passed in.

Implement ReleaseName and StartServiceByName().

Fix access control in vtable.
---
 src/libsystemd-bus/bus-protocol.h | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/libsystemd-bus')

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"
-- 
cgit v1.2.3-54-g00ecf