connection: use current_cred() for sender policy checks
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 7 Jan 2015 17:23:56 +0000 (18:23 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 7 Jan 2015 17:23:56 +0000 (18:23 +0100)
commitcae25e31ce7972235fd15f13a6f9e48cc8c2c48c
treebe35c523776a7b241950fb42dd0c763d39c60fd8
parentbcdb56a7cf1cde94052944af0dff61fcadaad182
connection: use current_cred() for sender policy checks

This changes the policy-decisions for sender-initiated actions to use
current_cred() instead of conn->cred. This means, policy decisions for
ioctls will use the current credentials, instead of the credentials during
open().

On the other hand, receiver credentials are now bound to the pool used for
retrieval of the messages. Therefore, broadcasts and implicit policies are
checked against the file credentials of the target.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
bus.c
connection.c
connection.h
names.c