Lines Matching refs:rqstp
62 nfsd_mode_check(struct svc_rqst *rqstp, umode_t mode, umode_t requested) in nfsd_mode_check() argument
74 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check()
83 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument
86 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
89 if (!test_bit(RQ_SECURE, &rqstp->rq_flags) && !(flags & NFSEXP_INSECURE_PORT)) { in nfsd_setuser_and_check_port()
92 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port()
97 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
100 static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, in check_pseudo_root() argument
111 if (!nfsd_v4client(rqstp)) in check_pseudo_root()
135 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
146 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
148 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
178 exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); in nfsd_set_fh_dentry()
191 exp = rqst_exp_find(rqstp, FSID_DEV, tfh); in nfsd_set_fh_dentry()
222 error = nfsd_setuser_and_check_port(rqstp, exp); in nfsd_set_fh_dentry()
231 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
304 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument
313 error = nfsd_set_fh_dentry(rqstp, fhp); in fh_verify()
335 error = check_pseudo_root(rqstp, dentry, exp); in fh_verify()
339 error = nfsd_setuser_and_check_port(rqstp, exp); in fh_verify()
343 error = nfsd_mode_check(rqstp, d_inode(dentry)->i_mode, type); in fh_verify()
363 error = check_nfsd_access(exp, rqstp); in fh_verify()
369 error = nfsd_permission(rqstp, exp, dentry, access); in fh_verify()