Lines Matching refs:auth
5607 struct ceph_mds_cap_auth *auth, in ceph_mds_auth_match() argument
5619 doutc(cl, "match.uid %lld\n", auth->match.uid); in ceph_mds_auth_match()
5620 if (auth->match.uid != MDS_AUTH_UID_ANY) { in ceph_mds_auth_match()
5621 if (auth->match.uid != caller_uid) in ceph_mds_auth_match()
5623 if (auth->match.num_gids) { in ceph_mds_auth_match()
5624 for (i = 0; i < auth->match.num_gids; i++) { in ceph_mds_auth_match()
5625 if (caller_gid == auth->match.gids[i]) in ceph_mds_auth_match()
5632 for (j = 0; j < auth->match.num_gids; j++) { in ceph_mds_auth_match()
5633 if (gid == auth->match.gids[j]) { in ceph_mds_auth_match()
5648 if (auth->match.path) { in ceph_mds_auth_match()
5653 len = strlen(auth->match.path); in ceph_mds_auth_match()
5660 spath, tpath, auth->match.path); in ceph_mds_auth_match()
5699 char *first = strstr(_tpath, auth->match.path); in ceph_mds_auth_match()
6286 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_get_authorizer()
6287 struct ceph_auth_handshake *auth = &s->s_auth; in mds_get_authorizer() local
6290 ret = __ceph_auth_get_authorizer(ac, auth, CEPH_ENTITY_TYPE_MDS, in mds_get_authorizer()
6295 return auth; in mds_get_authorizer()
6303 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_add_authorizer_challenge()
6313 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_verify_authorizer_reply()
6314 struct ceph_auth_handshake *auth = &s->s_auth; in mds_verify_authorizer_reply() local
6316 return ceph_auth_verify_authorizer_reply(ac, auth->authorizer, in mds_verify_authorizer_reply()
6317 auth->authorizer_reply_buf, auth->authorizer_reply_buf_len, in mds_verify_authorizer_reply()
6325 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_invalidate_authorizer()
6337 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth; in mds_get_auth_request()
6338 struct ceph_auth_handshake *auth = &s->s_auth; in mds_get_auth_request() local
6341 ret = ceph_auth_get_authorizer(ac, auth, CEPH_ENTITY_TYPE_MDS, in mds_get_auth_request()
6346 *authorizer = auth->authorizer_buf; in mds_get_auth_request()
6347 *authorizer_len = auth->authorizer_buf_len; in mds_get_auth_request()
6357 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth; in mds_handle_auth_reply_more()
6358 struct ceph_auth_handshake *auth = &s->s_auth; in mds_handle_auth_reply_more() local
6361 ret = ceph_auth_handle_svc_reply_more(ac, auth, reply, reply_len, in mds_handle_auth_reply_more()
6366 *authorizer = auth->authorizer_buf; in mds_handle_auth_reply_more()
6367 *authorizer_len = auth->authorizer_buf_len; in mds_handle_auth_reply_more()
6377 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth; in mds_handle_auth_done()
6378 struct ceph_auth_handshake *auth = &s->s_auth; in mds_handle_auth_done() local
6380 return ceph_auth_handle_svc_reply_done(ac, auth, reply, reply_len, in mds_handle_auth_done()
6394 if (ceph_auth_handle_bad_authorizer(monc->auth, CEPH_ENTITY_TYPE_MDS, in mds_handle_auth_bad_method()
6430 struct ceph_auth_handshake *auth = &s->s_auth; in mds_sign_message() local
6432 return ceph_auth_sign_message(auth, msg); in mds_sign_message()
6438 struct ceph_auth_handshake *auth = &s->s_auth; in mds_check_message_signature() local
6440 return ceph_auth_check_message_signature(auth, msg); in mds_check_message_signature()