tree-wide: rework flags negotiation (ABI break)
authorDaniel Mack <daniel@zonque.org>
Fri, 17 Oct 2014 11:43:14 +0000 (13:43 +0200)
committerDaniel Mack <daniel@zonque.org>
Sat, 18 Oct 2014 19:00:16 +0000 (21:00 +0200)
commit017f56c7e53f81c0cc559acafd4f446abd935d19
tree508e283035f0c7c4571fce155c0b64bfd6608211
parentedf96a5e4328bf12c0c29323bc9c0ec55cab129a
tree-wide: rework flags negotiation (ABI break)

We are obliged to reject all bits in flags fields that are not known
to the kernel. In order to let userspace know which flags the kernel
knowns about, we agreed to always write back to the flags field in the
ioctl buffer, even if the call succeeded. The kernel will, however,
will always set the KDBUS_FLAG_KERNEL bit, which consequently is always
invalid when submitted by userspace.

Move some checks from other place to handle.c, and update the testsuite
and documentation accordingly.

Signed-off-by: Daniel Mack <daniel@zonque.org>
13 files changed:
connection.c
handle.c
kdbus.h
kdbus.txt
match.c
message.c
message.h
names.c
test/test-connection.c
test/test-domain.c
test/test-free.c
util.c
util.h