kdbus.txt: first cleanups

Signed-off-by: Daniel Mack <daniel@zonque.org>
connection: kill unused function parameters

Signed-off-by: Daniel Mack <daniel@zonque.org>
connection: kdbus_conn_new(): remove seclabel_len

It's unused.

Signed-off-by: Daniel Mack <daniel@zonque.org>
pool: make return value of kdbus_pool_copy() int

Signed-off-by: Daniel Mack <daniel@zonque.org>
coding style cleanups

Use "bool foo:1" instead of "bool foo : 1".

Signed-off-by: Daniel Mack <daniel@zonque.org>
notify: fix eavesdropping for notification

When we inlined kmsg_send() in kdbus_notify_flush(), we dropped
eavesdropping support for notifications. Add it back!

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
kdbus: document KDBUS_CMD_BUS_MAKE expected/valid items

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
kdbus: restore previous comment in KDBUS_CMD_BUS_MAKE doc

Restore previous comment about unrecognized items.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
message: add blank line

Signed-off-by: Daniel Mack <daniel@zonque.org>
tree-wide: fix kerneldoc

Signed-off-by: Daniel Mack <daniel@zonque.org>
tree-wide: assorted fixes for checkpatch.pl warnings

Signed-off-by: Daniel Mack <daniel@zonque.org>
Revert "tree-wide: assorted fixes for checkpatch.pl warnings"

This partially reverts commit a70d6b77ce58b85559a809407036da024341c6a9.
The 'else'-clause optimizations break !SECLABEL builds.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
test-message: don't free messages when kdbus_msg_recv_poll() returns -EOVERFLOW

Signed-off-by: Daniel Mack <daniel@zonque.org>
tree-wide: more checkpatch nit-picking

Signed-off-by: Daniel Mack <daniel@zonque.org>
message: fix memory leak in kdbus_kmsg_new()

Signed-off-by: Daniel Mack <daniel@zonque.org>
metadata, queue: two more indent fixes

Signed-off-by: Daniel Mack <daniel@zonque.org>
more checkpatch fixes

Signed-off-by: Daniel Mack <daniel@zonque.org>
kdbus.txt: more updates

Signed-off-by: Daniel Mack <daniel@zonque.org>
metadata: improve documentation of the user_ns field of metadata

The pinned user_ns is also used for creds not only caps, so improve its
documentation.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
metadata: pin the metadata user_ns on both KDBUS_ATTACH_{CREDS|CAPS}

We need the metadata user_ns on both KDBUS_ATTACH_CREDS and
KDBUS_ATTACH_CAPS, so pin it when we use it, otherwise it will always be
NULL, put_user_ns() can handle NULL ns, so we are safe.

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