Lines Matching refs:rqstp
64 nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd_mode_check() argument
82 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check()
91 static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, int flags) in nfsd_originating_port_ok() argument
96 if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) in nfsd_originating_port_ok()
98 return test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_originating_port_ok()
101 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument
104 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
107 if (!nfsd_originating_port_ok(rqstp, flags)) { in nfsd_setuser_and_check_port()
110 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port()
115 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
118 static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, in check_pseudo_root() argument
129 if (!nfsd_v4client(rqstp)) in check_pseudo_root()
153 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
164 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
166 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
196 exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); in nfsd_set_fh_dentry()
209 exp = rqst_exp_find(rqstp, FSID_DEV, tfh); in nfsd_set_fh_dentry()
214 trace_nfsd_set_fh_dentry_badexport(rqstp, fhp, PTR_ERR(exp)); in nfsd_set_fh_dentry()
243 error = nfsd_setuser_and_check_port(rqstp, exp); in nfsd_set_fh_dentry()
252 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
275 trace_nfsd_set_fh_dentry_badhandle(rqstp, fhp, 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()