Lines Matching defs:auth

26 #include <linux/ceph/auth.h>
1441 /* choose auth mds */
1443 doutc(cl, "%p %llx.%llx frag %u mds%d (auth)\n",
1470 cap == ci->i_auth_cap ? "auth " : "", cap);
1630 /* flags, mds auth caps and oldest_client_tid */
1692 /* version == 6, mds auth caps */
2243 * after dropping auth caps. It doesn't hurt because reply
2244 * of lock mds request will re-add auth caps. */
3721 * For async create we will choose the auth MDS of frag in parent
3726 * And then the auth cap will be changed.
3757 doutc(cl, "session changed for auth cap %d -> %d\n",
3760 /* Remove the auth cap from old session */
3766 /* Add the auth cap to the new session */
6392 struct ceph_mds_cap_auth *auth,
6406 fs_name, auth->match.fs_name ? auth->match.fs_name : "");
6408 if (!ceph_namespace_match(auth->match.fs_name, fs_name)) {
6413 doutc(cl, "match.uid %lld\n", auth->match.uid);
6414 if (auth->match.uid != MDS_AUTH_UID_ANY) {
6415 if (auth->match.uid != caller_uid)
6417 if (auth->match.num_gids) {
6418 for (i = 0; i < auth->match.num_gids; i++) {
6419 if (caller_gid == auth->match.gids[i])
6426 for (j = 0; j < auth->match.num_gids; j++) {
6427 if (gid == auth->match.gids[j]) {
6442 if (auth->match.path) {
6447 len = strlen(auth->match.path);
6454 spath, tpath, auth->match.path);
6493 char *first = strstr(_tpath, auth->match.path);
6532 /* always follow the last auth caps' permission */
6559 doutc(cl, "mds auth caps readable/writeable %d/%d while request r/w %d/%d",
7181 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
7182 struct ceph_auth_handshake *auth = &s->s_auth;
7185 ret = __ceph_auth_get_authorizer(ac, auth, CEPH_ENTITY_TYPE_MDS,
7190 return auth;
7198 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
7208 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
7209 struct ceph_auth_handshake *auth = &s->s_auth;
7211 return ceph_auth_verify_authorizer_reply(ac, auth->authorizer,
7212 auth->authorizer_reply_buf, auth->authorizer_reply_buf_len,
7220 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
7232 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth;
7233 struct ceph_auth_handshake *auth = &s->s_auth;
7236 ret = ceph_auth_get_authorizer(ac, auth, CEPH_ENTITY_TYPE_MDS,
7241 *authorizer = auth->authorizer_buf;
7242 *authorizer_len = auth->authorizer_buf_len;
7252 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth;
7253 struct ceph_auth_handshake *auth = &s->s_auth;
7256 ret = ceph_auth_handle_svc_reply_more(ac, auth, reply, reply_len,
7261 *authorizer = auth->authorizer_buf;
7262 *authorizer_len = auth->authorizer_buf_len;
7272 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth;
7273 struct ceph_auth_handshake *auth = &s->s_auth;
7275 return ceph_auth_handle_svc_reply_done(ac, auth, reply, reply_len,
7289 if (ceph_auth_handle_bad_authorizer(monc->auth, CEPH_ENTITY_TYPE_MDS,
7325 struct ceph_auth_handshake *auth = &s->s_auth;
7327 return ceph_auth_sign_message(auth, msg);
7333 struct ceph_auth_handshake *auth = &s->s_auth;
7335 return ceph_auth_check_message_signature(auth, msg);