summaryrefslogtreecommitdiffstats
path: root/kernel/net/ceph/messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/ceph/messenger.c')
-rw-r--r--kernel/net/ceph/messenger.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/net/ceph/messenger.c b/kernel/net/ceph/messenger.c
index 63ae5dd24..b8d927c56 100644
--- a/kernel/net/ceph/messenger.c
+++ b/kernel/net/ceph/messenger.c
@@ -2042,6 +2042,19 @@ static int process_connect(struct ceph_connection *con)
dout("process_connect on %p tag %d\n", con, (int)con->in_tag);
+ if (con->auth_reply_buf) {
+ /*
+ * Any connection that defines ->get_authorizer()
+ * should also define ->verify_authorizer_reply().
+ * See get_connect_authorizer().
+ */
+ ret = con->ops->verify_authorizer_reply(con, 0);
+ if (ret < 0) {
+ con->error_msg = "bad authorize reply";
+ return ret;
+ }
+ }
+
switch (con->in_reply.tag) {
case CEPH_MSGR_TAG_FEATURES:
pr_err("%s%lld %s feature set mismatch,"