From b05777ae472dc417ac5f2d3377d67cafcbf8e070 Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Mon, 5 Jan 2015 15:08:26 +0100 Subject: [PATCH] connection: code documentation for the signal access logic Signed-off-by: Djalal Harouni --- connection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/connection.c b/connection.c index 8c2e7d8..9b016d5 100644 --- a/connection.c +++ b/connection.c @@ -1001,6 +1001,10 @@ int kdbus_cmd_msg_send(struct kdbus_conn *conn_src, goto exit_unref; } } else if (msg->flags & KDBUS_MSG_SIGNAL) { + /* + * A receiver needs TALK access to the sender + * in order to receive signals. + */ ret = kdbus_conn_check_access(conn_dst, conn_src, msg, NULL); if (ret < 0) -- 2.34.1