Lines Matching refs:rqstp
65 nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd_mode_check() argument
83 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check()
92 static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, int flags) in nfsd_originating_port_ok() argument
97 if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) in nfsd_originating_port_ok()
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
105 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
108 if (!nfsd_originating_port_ok(rqstp, flags)) { in nfsd_setuser_and_check_port()
111 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port()
116 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
119 static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, in check_pseudo_root() argument
130 if (!nfsd_v4client(rqstp)) in check_pseudo_root()
154 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
166 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
168 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
198 exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); in nfsd_set_fh_dentry()
203 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry()
232 error = nfsd_setuser_and_check_port(rqstp, exp); in nfsd_set_fh_dentry()
241 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
253 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, in nfsd_set_fh_dentry()
281 switch (rqstp->rq_vers) { in nfsd_set_fh_dentry()
328 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument
337 error = nfsd_set_fh_dentry(rqstp, fhp); in fh_verify()
359 error = check_pseudo_root(rqstp, dentry, exp); in fh_verify()
363 error = nfsd_setuser_and_check_port(rqstp, exp); in fh_verify()
367 error = nfsd_mode_check(rqstp, dentry, type); in fh_verify()
387 error = check_nfsd_access(exp, rqstp); in fh_verify()
393 error = nfsd_permission(rqstp, exp, dentry, access); in fh_verify()