• Home
  • Raw
  • Download

Lines Matching refs:rqstp

630 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp)  in unix_gid_find()  argument
635 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, in unix_gid_find()
641 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
657 svcauth_unix_set_client(struct svc_rqst *rqstp) in svcauth_unix_set_client() argument
663 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client()
664 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client()
668 switch (rqstp->rq_addr.ss_family) { in svcauth_unix_set_client()
670 sin = svc_addr_in(rqstp); in svcauth_unix_set_client()
675 sin6 = svc_addr_in6(rqstp); in svcauth_unix_set_client()
681 rqstp->rq_client = NULL; in svcauth_unix_set_client()
682 if (rqstp->rq_proc == 0) in svcauth_unix_set_client()
687 ipm = __ip_map_lookup(sn->ip_map_cache, rqstp->rq_server->sv_program->pg_class, in svcauth_unix_set_client()
693 switch (cache_check(sn->ip_map_cache, &ipm->h, &rqstp->rq_chandle)) { in svcauth_unix_set_client()
703 rqstp->rq_client = &ipm->m_client->h; in svcauth_unix_set_client()
704 kref_get(&rqstp->rq_client->ref); in svcauth_unix_set_client()
709 gi = unix_gid_find(cred->cr_uid, rqstp); in svcauth_unix_set_client()
727 svcauth_null_accept(struct svc_rqst *rqstp, __be32 *authp) in svcauth_null_accept() argument
729 struct kvec *argv = &rqstp->rq_arg.head[0]; in svcauth_null_accept()
730 struct kvec *resv = &rqstp->rq_res.head[0]; in svcauth_null_accept()
731 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_null_accept()
735 rqstp->rq_client = NULL; in svcauth_null_accept()
762 rqstp->rq_cred.cr_flavor = RPC_AUTH_NULL; in svcauth_null_accept()
767 svcauth_null_release(struct svc_rqst *rqstp) in svcauth_null_release() argument
769 if (rqstp->rq_client) in svcauth_null_release()
770 auth_domain_put(rqstp->rq_client); in svcauth_null_release()
771 rqstp->rq_client = NULL; in svcauth_null_release()
772 if (rqstp->rq_cred.cr_group_info) in svcauth_null_release()
773 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_null_release()
774 rqstp->rq_cred.cr_group_info = NULL; in svcauth_null_release()
791 svcauth_unix_accept(struct svc_rqst *rqstp, __be32 *authp) in svcauth_unix_accept() argument
793 struct kvec *argv = &rqstp->rq_arg.head[0]; in svcauth_unix_accept()
794 struct kvec *resv = &rqstp->rq_res.head[0]; in svcauth_unix_accept()
795 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_accept()
801 rqstp->rq_client = NULL; in svcauth_unix_accept()
841 rqstp->rq_cred.cr_flavor = RPC_AUTH_UNIX; in svcauth_unix_accept()
850 svcauth_unix_release(struct svc_rqst *rqstp) in svcauth_unix_release() argument
854 if (rqstp->rq_client) in svcauth_unix_release()
855 auth_domain_put(rqstp->rq_client); in svcauth_unix_release()
856 rqstp->rq_client = NULL; in svcauth_unix_release()
857 if (rqstp->rq_cred.cr_group_info) in svcauth_unix_release()
858 put_group_info(rqstp->rq_cred.cr_group_info); in svcauth_unix_release()
859 rqstp->rq_cred.cr_group_info = NULL; in svcauth_unix_release()