From: Djalal Harouni Date: Tue, 5 Aug 2014 01:46:06 +0000 (+0100) Subject: handle: allow KDBUS_CMD_CONN_UPDATE ioctl for policy holders X-Git-Tag: upstream/0.20140911.160207utc~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6813adf37fdfe7e50451abf3fac66754746f22cd;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git 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 --- 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; }