]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/mon: pass cct to verify_authorizer()
authorKefu Chai <kchai@redhat.com>
Thu, 25 Apr 2019 14:04:50 +0000 (22:04 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Apr 2019 16:12:57 +0000 (00:12 +0800)
CephxAuthorizeHandler::verify_authorizer() uses it for querying config
and for a RNG, so we have to pass it a CephContext which has `_conf` and
`random()`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/mon/MonClient.cc

index 4cf88fbe7d4f2b85f0c4e5c6362258c1396631f7..0623a5bd748df0957d67690de8f691b216701847 100644 (file)
@@ -540,7 +540,7 @@ int Client::handle_auth_request(ceph::net::ConnectionRef con,
   uint64_t global_id;
   AuthCapsInfo caps_info;
   bool is_valid = ah->verify_authorizer(
-    nullptr,
+    &cct,
     &active_con->get_keys(),
     payload,
     auth_meta->get_connection_secret_length(),