[PATCH 7/9] kdbus: consolidate common code

2015-08-06 Thread David Herrmann
Move the file-credential checkers into kdbus_ep_*() helper functions to avoid hard-coding the same behavior in multiple places. Signed-off-by: David Herrmann --- ipc/kdbus/connection.c | 20 ++-- ipc/kdbus/endpoint.c | 28 ipc/kdbus/endpoint.h |

[PATCH 7/9] kdbus: consolidate common code

2015-08-06 Thread David Herrmann
Move the file-credential checkers into kdbus_ep_*() helper functions to avoid hard-coding the same behavior in multiple places. Signed-off-by: David Herrmann dh.herrm...@gmail.com --- ipc/kdbus/connection.c | 20 ++-- ipc/kdbus/endpoint.c | 28