Lines Matching refs:rqstp
63 nfsd_mode_check(struct svc_rqst *rqstp, struct dentry *dentry, in nfsd_mode_check() argument
81 if (rqstp->rq_vers == 4 && mode == S_IFLNK) in nfsd_mode_check()
90 static bool nfsd_originating_port_ok(struct svc_rqst *rqstp, int flags) in nfsd_originating_port_ok() argument
95 if (rqstp->rq_cred.cr_flavor >= RPC_AUTH_GSS) in nfsd_originating_port_ok()
97 return test_bit(RQ_SECURE, &rqstp->rq_flags); in nfsd_originating_port_ok()
100 static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, in nfsd_setuser_and_check_port() argument
103 int flags = nfsexp_flags(rqstp, exp); in nfsd_setuser_and_check_port()
106 if (!nfsd_originating_port_ok(rqstp, flags)) { in nfsd_setuser_and_check_port()
109 svc_print_addr(rqstp, buf, sizeof(buf))); in nfsd_setuser_and_check_port()
114 return nfserrno(nfsd_setuser(rqstp, exp)); in nfsd_setuser_and_check_port()
117 static inline __be32 check_pseudo_root(struct svc_rqst *rqstp, in check_pseudo_root() argument
128 if (!nfsd_v4client(rqstp)) in check_pseudo_root()
152 static __be32 nfsd_set_fh_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp) in nfsd_set_fh_dentry() argument
163 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
165 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry()
195 exp = rqst_exp_find(rqstp, fh->fh_fsid_type, fh->fh_fsid); in nfsd_set_fh_dentry()
208 exp = rqst_exp_find(rqstp, FSID_DEV, tfh); in nfsd_set_fh_dentry()
239 error = nfsd_setuser_and_check_port(rqstp, exp); in nfsd_set_fh_dentry()
248 if (rqstp->rq_vers > 2) in nfsd_set_fh_dentry()
321 fh_verify(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, int access) in fh_verify() argument
330 error = nfsd_set_fh_dentry(rqstp, fhp); in fh_verify()
352 error = check_pseudo_root(rqstp, dentry, exp); in fh_verify()
356 error = nfsd_setuser_and_check_port(rqstp, exp); in fh_verify()
360 error = nfsd_mode_check(rqstp, dentry, type); in fh_verify()
380 error = check_nfsd_access(exp, rqstp); in fh_verify()
386 error = nfsd_permission(rqstp, exp, dentry, access); in fh_verify()