connection: improve kdbus_cmd_conn_update() connection type checks
authorDjalal Harouni <tixxdz@opendz.org>
Tue, 5 Aug 2014 01:46:07 +0000 (02:46 +0100)
committerKay Sievers <kay@vrfy.org>
Tue, 5 Aug 2014 07:24:27 +0000 (09:24 +0200)
commit7593bc182273cffefa3e1a6a6812b0f0c2456d2f
treeefcbebba4146a9dcdd17b181b0a9781b728be73c
parent6813adf37fdfe7e50451abf3fac66754746f22cd
connection: improve kdbus_cmd_conn_update() connection type checks

Do another round of connection type checks inside the KDBUS_ITEM
iterator.

We need this since we do not want to allow ordinary connections to
update policy entries that belong to another policy holder connection.

We also do it for the attach flags since only ordinary connections are
interessted in it.

And update a kdbus_policy_set() call to only pass a one name per
policy-holding connection

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
connection.c