[systemd-devel] [PATCH 5/5] connection: allow policy holders to install multiple names
Djalal Harouni
tixxdz at opendz.org
Wed Jul 23 09:34:36 PDT 2014
Signed-off-by: Djalal Harouni <tixxdz at opendz.org>
---
connection.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/connection.c b/connection.c
index 85ffa5a..1658a92 100644
--- a/connection.c
+++ b/connection.c
@@ -1905,7 +1905,11 @@ int kdbus_conn_new(struct kdbus_ep *ep,
if (!is_activator && !is_policy_holder)
return -EINVAL;
- if (name)
+ /*
+ * activators are allowed to install only
+ * one name.
+ */
+ if (name && is_activator)
return -EINVAL;
if (!kdbus_item_validate_nul(item))
--
1.9.3
More information about the systemd-devel
mailing list