| /linux/net/sunrpc/ |
| H A D | svc.c | 638 svc_init_buffer(struct svc_rqst *rqstp, const struct svc_serv *serv, int node) in svc_init_buffer() argument 640 rqstp->rq_maxpages = svc_serv_maxpages(serv); in svc_init_buffer() 643 rqstp->rq_pages = kcalloc_node(rqstp->rq_maxpages + 1, in svc_init_buffer() 646 if (!rqstp->rq_pages) in svc_init_buffer() 656 svc_release_buffer(struct svc_rqst *rqstp) in svc_release_buffer() argument 660 for (i = 0; i < rqstp->rq_maxpages; i++) in svc_release_buffer() 661 if (rqstp->rq_pages[i]) in svc_release_buffer() 662 put_page(rqstp->rq_pages[i]); in svc_release_buffer() 663 kfree(rqstp->rq_pages); in svc_release_buffer() 667 svc_rqst_free(struct svc_rqst *rqstp) in svc_rqst_free() argument [all …]
|
| H A D | svc_xprt.c | 31 static int svc_deferred_recv(struct svc_rqst *rqstp); 382 void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_copy_addrs() argument 384 memcpy(&rqstp->rq_addr, &xprt->xpt_remote, xprt->xpt_remotelen); in svc_xprt_copy_addrs() 385 rqstp->rq_addrlen = xprt->xpt_remotelen; in svc_xprt_copy_addrs() 391 memcpy(&rqstp->rq_daddr, &xprt->xpt_local, xprt->xpt_locallen); in svc_xprt_copy_addrs() 392 rqstp->rq_daddrlen = xprt->xpt_locallen; in svc_xprt_copy_addrs() 403 char *svc_print_addr(struct svc_rqst *rqstp, char *buf, size_t len) in svc_print_addr() argument 405 return __svc_print_addr(svc_addr(rqstp), buf, len); in svc_print_addr() 417 static bool svc_xprt_reserve_slot(struct svc_rqst *rqstp, struct svc_xprt *xprt) in svc_xprt_reserve_slot() argument 419 if (!test_bit(RQ_DATA, &rqstp->rq_flags)) { in svc_xprt_reserve_slot() [all …]
|
| H A D | svcsock.c | 167 static void svc_set_cmsg_data(struct svc_rqst *rqstp, struct cmsghdr *cmh) in svc_set_cmsg_data() argument 170 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_set_cmsg_data() 179 svc_daddr_in(rqstp)->sin_addr.s_addr; in svc_set_cmsg_data() 186 struct sockaddr_in6 *daddr = svc_daddr_in6(rqstp); in svc_set_cmsg_data() 198 static int svc_sock_result_payload(struct svc_rqst *rqstp, unsigned int offset, in svc_sock_result_payload() argument 339 static ssize_t svc_tcp_read_msg(struct svc_rqst *rqstp, size_t buflen, in svc_tcp_read_msg() argument 343 container_of(rqstp->rq_xprt, struct svc_sock, sk_xprt); in svc_tcp_read_msg() 344 struct bio_vec *bvec = rqstp->rq_bvec; in svc_tcp_read_msg() 353 bvec_set_page(&bvec[i], rqstp->rq_pages[i], PAGE_SIZE, 0); in svc_tcp_read_msg() 354 rqstp->rq_respages = &rqstp->rq_pages[i]; in svc_tcp_read_msg() [all …]
|
| H A D | svcauth.c | 76 enum svc_auth_status svc_authenticate(struct svc_rqst *rqstp) in svc_authenticate() argument 81 rqstp->rq_auth_stat = rpc_auth_ok; in svc_authenticate() 87 if (xdr_stream_decode_u32(&rqstp->rq_arg_stream, &flavor) < 0) in svc_authenticate() 92 rqstp->rq_auth_stat = rpc_autherr_badcred; in svc_authenticate() 96 rqstp->rq_auth_slack = 0; in svc_authenticate() 97 init_svc_cred(&rqstp->rq_cred); in svc_authenticate() 99 rqstp->rq_authop = aops; in svc_authenticate() 100 return aops->accept(rqstp); in svc_authenticate() 113 enum svc_auth_status svc_set_client(struct svc_rqst *rqstp) in svc_set_client() argument 115 rqstp->rq_client = NULL; in svc_set_client() [all …]
|
| H A D | svcauth_unix.c | 642 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) in unix_gid_find() argument 647 struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, in unix_gid_find() 653 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find() 669 svcauth_unix_set_client(struct svc_rqst *rqstp) in svcauth_unix_set_client() argument 675 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix_set_client() 676 struct svc_xprt *xprt = rqstp->rq_xprt; in svcauth_unix_set_client() 680 switch (rqstp->rq_addr.ss_family) { in svcauth_unix_set_client() 682 sin = svc_addr_in(rqstp); in svcauth_unix_set_client() 687 sin6 = svc_addr_in6(rqstp); in svcauth_unix_set_client() 693 rqstp->rq_client = NULL; in svcauth_unix_set_client() [all …]
|
| /linux/fs/lockd/ |
| H A D | svc4proc.c | 23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument 40 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlm4svc_retrieve_args() 51 error = nlm_lookup_file(rqstp, &file, lock); in nlm4svc_retrieve_args() 85 nlm4svc_proc_null(struct svc_rqst *rqstp) in nlm4svc_proc_null() argument 95 __nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlm4svc_proc_test() argument 97 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() 106 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test() 110 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, in __nlm4svc_proc_test() 124 nlm4svc_proc_test(struct svc_rqst *rqstp) in nlm4svc_proc_test() argument 126 return __nlm4svc_proc_test(rqstp, rqstp->rq_resp); in nlm4svc_proc_test() [all …]
|
| H A D | svcproc.c | 43 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) 52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument 66 if (!(host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len)) in nlmsvc_retrieve_args() 73 error = cast_status(nlm_lookup_file(rqstp, &file, lock)); in nlmsvc_retrieve_args() 105 nlmsvc_proc_null(struct svc_rqst *rqstp) in nlmsvc_proc_null() argument 115 __nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_res *resp) in __nlmsvc_proc_test() argument 117 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() 126 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test() 130 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, in __nlmsvc_proc_test() 136 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test() [all …]
|
| H A D | xdr.c | 149 nlmsvc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_void() argument 155 nlmsvc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_testargs() argument 157 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() 173 nlmsvc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_lockargs() argument 175 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() 198 nlmsvc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_cancargs() argument 200 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_cancargs() 218 nlmsvc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_unlockargs() argument 220 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_unlockargs() 232 nlmsvc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nlmsvc_decode_res() argument [all …]
|
| /linux/include/linux/sunrpc/ |
| H A D | svc.h | 131 extern u32 svc_max_payload(const struct svc_rqst *rqstp); 313 static inline bool svc_thread_should_stop(struct svc_rqst *rqstp) in svc_thread_should_stop() argument 315 if (test_and_clear_bit(SP_NEED_VICTIM, &rqstp->rq_pool->sp_flags)) in svc_thread_should_stop() 316 set_bit(RQ_VICTIM, &rqstp->rq_flags); in svc_thread_should_stop() 318 return test_bit(RQ_VICTIM, &rqstp->rq_flags); in svc_thread_should_stop() 334 static inline void svc_thread_init_status(struct svc_rqst *rqstp, int err) in svc_thread_init_status() argument 336 store_release_wake_up(&rqstp->rq_err, err); in svc_thread_init_status() 356 int (*dispatch)(struct svc_rqst *rqstp); 375 enum svc_auth_status (*pg_authenticate)(struct svc_rqst *rqstp); 406 int (*vs_dispatch)(struct svc_rqst *rqstp); [all …]
|
| /linux/fs/nfsd/ |
| H A D | xdr3.h | 183 struct svc_rqst * rqstp; member 268 bool nfs3svc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 269 bool nfs3svc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 270 bool nfs3svc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 271 bool nfs3svc_decode_accessargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 272 bool nfs3svc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 273 bool nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 274 bool nfs3svc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 275 bool nfs3svc_decode_mkdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 276 bool nfs3svc_decode_mknodargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); [all …]
|
| H A D | xdr.h | 144 bool nfssvc_decode_fhandleargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 145 bool nfssvc_decode_sattrargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 146 bool nfssvc_decode_diropargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 147 bool nfssvc_decode_readargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 148 bool nfssvc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 149 bool nfssvc_decode_createargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 150 bool nfssvc_decode_renameargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 151 bool nfssvc_decode_linkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 152 bool nfssvc_decode_symlinkargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 153 bool nfssvc_decode_readdirargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); [all …]
|
| H A D | nfs2acl.c | 22 nfsacld_proc_null(struct svc_rqst *rqstp) in nfsacld_proc_null() argument 30 static __be32 nfsacld_proc_getacl(struct svc_rqst *rqstp) in nfsacld_proc_getacl() argument 32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsacld_proc_getacl() 33 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsacld_proc_getacl() 41 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 95 static __be32 nfsacld_proc_setacl(struct svc_rqst *rqstp) in nfsacld_proc_setacl() argument 97 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsacld_proc_setacl() 98 struct nfsd_attrstat *resp = rqstp->rq_resp; in nfsacld_proc_setacl() 106 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl() 151 static __be32 nfsacld_proc_getattr(struct svc_rqst *rqstp) in nfsacld_proc_getattr() argument [all …]
|
| H A D | nfs4proc.c | 84 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in check_attr_support() argument 106 nfsd4_check_open_attributes(struct svc_rqst *rqstp, in nfsd4_check_open_attributes() argument 114 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes() 117 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes() 144 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int … in do_open_permission() argument 160 return fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission() 235 nfsd4_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd4_create_file() argument 254 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd4_create_file() 275 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd4_create_file() 372 status = nfsd_create_setattr(rqstp, fhp, resfhp, &attrs); in nfsd4_create_file() [all …]
|
| H A D | nfs3acl.c | 20 nfsd3_proc_null(struct svc_rqst *rqstp) in nfsd3_proc_null() argument 28 static __be32 nfsd3_proc_getacl(struct svc_rqst *rqstp) in nfsd3_proc_getacl() argument 30 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsd3_proc_getacl() 31 struct nfsd3_getaclres *resp = rqstp->rq_resp; in nfsd3_proc_getacl() 37 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 87 static __be32 nfsd3_proc_setacl(struct svc_rqst *rqstp) in nfsd3_proc_setacl() argument 89 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsd3_proc_setacl() 90 struct nfsd3_attrstat *resp = rqstp->rq_resp; in nfsd3_proc_setacl() 96 resp->status = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 133 nfs3svc_decode_getaclargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) in nfs3svc_decode_getaclargs() argument [all …]
|
| H A D | vfs.c | 125 nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, in nfsd_cross_mnt() argument 148 exp2 = rqst_exp_get_by_name(rqstp, &path); in nfsd_cross_mnt() 163 if (nfsd_v4client(rqstp) || in nfsd_cross_mnt() 194 static int nfsd_lookup_parent(struct svc_rqst *rqstp, struct dentry *dparent, struct svc_export **e… in nfsd_lookup_parent() argument 202 exp2 = rqst_exp_parent(rqstp, &path); in nfsd_lookup_parent() 243 nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd_lookup_dentry() argument 252 trace_nfsd_vfs_lookup(rqstp, fhp, name, len); in nfsd_lookup_dentry() 263 else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp)) in nfsd_lookup_dentry() 267 host_err = nfsd_lookup_parent(rqstp, dparent, &exp, &dentry); in nfsd_lookup_dentry() 278 host_err = nfsd_cross_mnt(rqstp, &dentry, &exp); in nfsd_lookup_dentry() [all …]
|
| H A D | nfssvc.c | 807 nfsd_acl_init_request(struct svc_rqst *rqstp, in nfsd_acl_init_request() argument 811 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd_acl_init_request() 814 if (likely(nfsd_support_acl_version(rqstp->rq_vers) && in nfsd_acl_init_request() 815 nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST))) in nfsd_acl_init_request() 816 return svc_generic_init_request(rqstp, progp, ret); in nfsd_acl_init_request() 820 if (nfsd_support_acl_version(rqstp->rq_vers) && in nfsd_acl_init_request() 830 if (nfsd_support_acl_version(rqstp->rq_vers) && in nfsd_acl_init_request() 852 nfsd_init_request(struct svc_rqst *rqstp, in nfsd_init_request() argument 856 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in nfsd_init_request() 859 if (likely(nfsd_vers(nn, rqstp->rq_vers, NFSD_TEST))) in nfsd_init_request() [all …]
|
| H A D | trace.h | 60 const struct svc_rqst *rqstp 62 TP_ARGS(rqstp), 68 __sockaddr(server, rqstp->rq_xprt->xpt_locallen) 69 __sockaddr(client, rqstp->rq_xprt->xpt_remotelen) 72 const struct svc_xprt *xprt = rqstp->rq_xprt; 75 __entry->xid = be32_to_cpu(rqstp->rq_xid); 76 __entry->vers = rqstp->rq_vers; 77 __entry->proc = rqstp->rq_proc; 88 TP_PROTO(const struct svc_rqst *rqstp), \ 89 TP_ARGS(rqstp)) [all …]
|
| H A D | nfs4idmap.c | 507 idmap_lookup(struct svc_rqst *rqstp, in idmap_lookup() argument 517 ret = cache_check(detail, &(*item)->h, &rqstp->rq_chandle); in idmap_lookup() 530 rqst_authname(struct svc_rqst *rqstp) in rqst_authname() argument 534 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; in rqst_authname() 539 idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, in idmap_name_to_id() argument 546 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_name_to_id() 552 strscpy(key.authname, rqst_authname(rqstp), sizeof(key.authname)); in idmap_name_to_id() 553 ret = idmap_lookup(rqstp, nametoid_lookup, &key, nn->nametoid_cache, &item); in idmap_name_to_id() 578 struct svc_rqst *rqstp, int type, u32 id) in idmap_id_to_name() argument 587 struct nfsd_net *nn = net_generic(SVC_NET(rqstp), nfsd_net_id); in idmap_id_to_name() [all …]
|
| H A D | vfs.h | 75 int nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp, 88 __be32 nfsd4_clone_file_range(struct svc_rqst *rqstp, 100 __be32 nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 106 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 108 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 110 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 112 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 120 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 124 __be32 nfsd_iter_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 128 bool nfsd_read_splice_ok(struct svc_rqst *rqstp); [all …]
|
| H A D | nfscache.c | 40 static int nfsd_cache_append(struct svc_rqst *rqstp, struct kvec *vec); 88 nfsd_cacherep_alloc(struct svc_rqst *rqstp, __wsum csum, in nfsd_cacherep_alloc() argument 101 rp->c_key.k_xid = rqstp->rq_xid; in nfsd_cacherep_alloc() 102 rp->c_key.k_proc = rqstp->rq_proc; in nfsd_cacherep_alloc() 103 rpc_copy_addr((struct sockaddr *)&rp->c_key.k_addr, svc_addr(rqstp)); in nfsd_cacherep_alloc() 104 rpc_set_port((struct sockaddr *)&rp->c_key.k_addr, rpc_get_port(svc_addr(rqstp))); in nfsd_cacherep_alloc() 105 rp->c_key.k_prot = rqstp->rq_prot; in nfsd_cacherep_alloc() 106 rp->c_key.k_vers = rqstp->rq_vers; in nfsd_cacherep_alloc() 107 rp->c_key.k_len = rqstp->rq_arg.len; in nfsd_cacherep_alloc() 466 int nfsd_cache_lookup(struct svc_rqst *rqstp, unsigned int start, in nfsd_cache_lookup() argument [all …]
|
| H A D | nfsfh.c | 90 static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, in nfsd_originating_port_ok() argument 99 return test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_originating_port_ok() 102 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument 107 if (rqstp && !nfsd_originating_port_ok(rqstp, cred, exp)) { in nfsd_setuser_and_check_port() 110 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port() 145 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct net *net, in nfsd_set_fh_dentry() argument 193 exp = rqst_exp_find(rqstp ? &rqstp->rq_chandle : NULL, in nfsd_set_fh_dentry() 200 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry() 228 error = nfsd_setuser_and_check_port(rqstp, cred, exp); in nfsd_set_fh_dentry() 247 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, in nfsd_set_fh_dentry() [all …]
|
| /linux/include/linux/lockd/ |
| H A D | xdr4.h | 26 bool nlm4svc_decode_void(struct svc_rqst *rqstp, struct xdr_stream *xdr); 27 bool nlm4svc_decode_testargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 28 bool nlm4svc_decode_lockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 29 bool nlm4svc_decode_cancargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 30 bool nlm4svc_decode_unlockargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 31 bool nlm4svc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr); 32 bool nlm4svc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr); 33 bool nlm4svc_decode_shareargs(struct svc_rqst *rqstp, struct xdr_stream *xdr); 34 bool nlm4svc_decode_notify(struct svc_rqst *rqstp, struct xdr_stream *xdr); 36 bool nlm4svc_encode_testres(struct svc_rqst *rqstp, struct xdr_stream *xdr); [all …]
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | svcauth_gss.c | 655 static bool gss_check_seq_num(const struct svc_rqst *rqstp, struct rsc *rsci, in gss_check_seq_num() argument 685 trace_rpcgss_svc_seqno_low(rqstp, seq_num, in gss_check_seq_num() 690 trace_rpcgss_svc_seqno_seen(rqstp, seq_num); in gss_check_seq_num() 702 svcauth_gss_verify_header(struct svc_rqst *rqstp, struct rsc *rsci, in svcauth_gss_verify_header() argument 705 struct xdr_stream *xdr = &rqstp->rq_arg_stream; in svcauth_gss_verify_header() 724 rqstp->rq_auth_stat = rpc_autherr_badverf; in svcauth_gss_verify_header() 728 rqstp->rq_auth_stat = rpc_autherr_badverf; in svcauth_gss_verify_header() 732 if (rqstp->rq_deferred) in svcauth_gss_verify_header() 736 trace_rpcgss_svc_mic(rqstp, maj_stat); in svcauth_gss_verify_header() 737 rqstp->rq_auth_stat = rpcsec_gsserr_credproblem; in svcauth_gss_verify_header() [all …]
|
| /linux/include/trace/events/ |
| H A D | rpcgss.h | 177 const struct svc_rqst *rqstp, 181 TP_ARGS(rqstp, maj_stat), 186 __string(addr, rqstp->rq_xprt->xpt_remotebuf) 190 __entry->xid = __be32_to_cpu(rqstp->rq_xid); 204 const struct svc_rqst *rqstp, \ 207 TP_ARGS(rqstp, maj_stat)) 216 const struct svc_rqst *rqstp 219 TP_ARGS(rqstp), 223 __string(addr, rqstp->rq_xprt->xpt_remotebuf) 227 __entry->xid = be32_to_cpu(rqstp->rq_xid); [all …]
|
| /linux/fs/nfs/ |
| H A D | callback.c | 77 struct svc_rqst *rqstp = vrqstp; in nfs4_callback_svc() local 79 svc_thread_init_status(rqstp, 0); in nfs4_callback_svc() 83 while (!svc_thread_should_stop(rqstp)) in nfs4_callback_svc() 84 svc_recv(rqstp); in nfs4_callback_svc() 86 svc_exit_thread(rqstp); in nfs4_callback_svc() 280 check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) in check_gss_callback_principal() argument 282 char *p = rqstp->rq_cred.cr_principal; in check_gss_callback_principal() 284 if (rqstp->rq_authop->flavour != RPC_AUTH_GSS) in check_gss_callback_principal() 328 static enum svc_auth_status nfs_callback_authenticate(struct svc_rqst *rqstp) in nfs_callback_authenticate() argument 330 rqstp->rq_auth_stat = rpc_autherr_badcred; in nfs_callback_authenticate() [all …]
|