[systemd-devel] [PATCH 1/3] handle: allow KDBUS_CMD_CONN_UPDATE ioctl for policy holders

Djalal Harouni tixxdz at opendz.org
Mon Aug 4 18:46:06 PDT 2014


Allow KDBUS_CMD_CONN_UPDATE for KDBUS_CONN_POLICY_HOLDER connections.

Signed-off-by: Djalal Harouni <tixxdz at opendz.org>
---
 handle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/handle.c b/handle.c
index 2e6502b..ac68681 100644
--- a/handle.c
+++ b/handle.c
@@ -636,8 +636,8 @@ static long kdbus_handle_ioctl_ep_connected(struct file *file, unsigned int cmd,
 
 	case KDBUS_CMD_CONN_UPDATE:
 		/* update the properties of a connection */
-
-		if (conn->type != KDBUS_CONN_CONNECTED) {
+		if (conn->type != KDBUS_CONN_CONNECTED &&
+		    conn->type != KDBUS_CONN_POLICY_HOLDER) {
 			ret = -EOPNOTSUPP;
 			break;
 		}
-- 
1.9.3



More information about the systemd-devel mailing list