Lines Matching refs:cred
682 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client() local
728 gi = unix_gid_find(cred->cr_uid, rqstp); in svcauth_unix_set_client()
737 put_group_info(cred->cr_group_info); in svcauth_unix_set_client()
738 cred->cr_group_info = gi; in svcauth_unix_set_client()
750 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_null_accept() local
767 cred->cr_uid = INVALID_UID; in svcauth_null_accept()
768 cred->cr_gid = INVALID_GID; in svcauth_null_accept()
769 cred->cr_group_info = groups_alloc(0); in svcauth_null_accept()
770 if (cred->cr_group_info == NULL) in svcauth_null_accept()
810 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_accept() local
834 cred->cr_uid = make_kuid(userns, svc_getnl(argv)); /* uid */ in svcauth_unix_accept()
835 cred->cr_gid = make_kgid(userns, svc_getnl(argv)); /* gid */ in svcauth_unix_accept()
839 cred->cr_group_info = groups_alloc(slen); in svcauth_unix_accept()
840 if (cred->cr_group_info == NULL) in svcauth_unix_accept()
844 cred->cr_group_info->gid[i] = kgid; in svcauth_unix_accept()
846 groups_sort(cred->cr_group_info); in svcauth_unix_accept()