From 6813adf37fdfe7e50451abf3fac66754746f22cd Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Tue, 5 Aug 2014 02:46:06 +0100 Subject: [PATCH] handle: allow KDBUS_CMD_CONN_UPDATE ioctl for policy holders Allow KDBUS_CMD_CONN_UPDATE for KDBUS_CONN_POLICY_HOLDER connections. Signed-off-by: Djalal Harouni --- 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; } -- 2.34.1