policy: fix error unwinding
connection: fix name logic in kdbus_conn_new()
metadata: do not try to attach empty connection name
connection: actually set policy for policy holders
kdbus: add kdbus_item_validate_name() to validate names

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
kdbus: use kdbus_item_validate_name() to validate names

Use kdbus_item_validate_name() where appropriate.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
move waitqueue from endpoint to connection

This way, we don't unnecessarily wake up all connection on an endpoint.

Suggested by scampa.giovanni:

  http://code.google.com/p/d-bus/issues/detail?id=1
TODO: update
endpoint: when disconnecting, disconnect all connections
fix kerneldoc
add debug log code
Revert "add debug log code"

This reverts commit 4a3321d3143fbb0156c0233c26702fb6853fcbc4.
attach: add _KDBUS_ATTACH_ALL definition that includes all currently defined attach flags
monitor: read metadata subscription bits from monitor connection
endpoint: break if an endpoint was found

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
pool: cosmetic cleanups
connection: kdbus_cmd_msg_recv(): fix use after free
connection: kill unneeded parenthesis