connection: code documentation for the signal access logic
authorDjalal Harouni <tixxdz@opendz.org>
Mon, 5 Jan 2015 14:08:26 +0000 (15:08 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Mon, 5 Jan 2015 14:08:26 +0000 (15:08 +0100)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
connection.c

index 8c2e7d88289182d8a83fd3515a17ba425faffb53..9b016d5f97a4c88bdc4ec6c84de320cabbedc747 100644 (file)
@@ -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)