Lines Matching refs:match
4185 ceph_decode_64_safe(&p, end, cap_auths[i].match.uid, bad); in handle_session()
4188 cap_auths[i].match.gids = kcalloc(_len, sizeof(u32), in handle_session()
4190 if (!cap_auths[i].match.gids) { in handle_session()
4195 cap_auths[i].match.num_gids = _len; in handle_session()
4198 cap_auths[i].match.gids[j], in handle_session()
4204 cap_auths[i].match.path = kcalloc(_len + 1, sizeof(char), in handle_session()
4206 if (!cap_auths[i].match.path) { in handle_session()
4210 ceph_decode_copy(&p, cap_auths[i].match.path, _len); in handle_session()
4213 while (_len && cap_auths[i].match.path[_len - 1] == '/') { in handle_session()
4214 cap_auths[i].match.path[_len - 1] = '\0'; in handle_session()
4221 cap_auths[i].match.fs_name = kcalloc(_len + 1, sizeof(char), in handle_session()
4223 if (!cap_auths[i].match.fs_name) { in handle_session()
4227 ceph_decode_copy(&p, cap_auths[i].match.fs_name, _len); in handle_session()
4230 ceph_decode_8_safe(&p, end, cap_auths[i].match.root_squash, bad); in handle_session()
4234 cap_auths[i].match.uid, cap_auths[i].match.num_gids, in handle_session()
4235 cap_auths[i].match.path, cap_auths[i].match.fs_name, in handle_session()
4236 cap_auths[i].match.root_squash, in handle_session()
4246 kfree(mdsc->s_cap_auths[i].match.gids); in handle_session()
4247 kfree(mdsc->s_cap_auths[i].match.path); in handle_session()
4248 kfree(mdsc->s_cap_auths[i].match.fs_name); in handle_session()
4386 kfree(cap_auths[i].match.gids); in handle_session()
4387 kfree(cap_auths[i].match.path); in handle_session()
4388 kfree(cap_auths[i].match.fs_name); in handle_session()
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()
5742 s->match.root_squash && (!caller_uid || !caller_gid)) in ceph_mds_check_access()
6023 kfree(mdsc->s_cap_auths[i].match.gids); in ceph_mdsc_stop()
6024 kfree(mdsc->s_cap_auths[i].match.path); in ceph_mdsc_stop()
6025 kfree(mdsc->s_cap_auths[i].match.fs_name); in ceph_mdsc_stop()