Lines Matching refs:accmode
175 …permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) in do_open_permission() argument
183 accmode |= NFSD_MAY_READ_IF_EXEC; in do_open_permission()
186 accmode |= NFSD_MAY_READ; in do_open_permission()
188 accmode |= (NFSD_MAY_WRITE | NFSD_MAY_TRUNC); in do_open_permission()
190 accmode |= NFSD_MAY_WRITE; in do_open_permission()
192 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); in do_open_permission()
227 int accmode; in do_open_lookup() local
294 accmode = NFSD_MAY_NOP; in do_open_lookup()
297 accmode |= NFSD_MAY_OWNER_OVERRIDE; in do_open_lookup()
298 status = do_open_permission(rqstp, *resfh, open, accmode); in do_open_lookup()
309 int accmode = 0; in do_open_fhandle() local
331 accmode = NFSD_MAY_OWNER_OVERRIDE; in do_open_fhandle()
333 status = do_open_permission(rqstp, current_fh, open, accmode); in do_open_fhandle()
1372 int accmode = NFSD_MAY_READ_IF_EXEC; in nfsd4_layoutget() local
1376 accmode |= NFSD_MAY_READ; in nfsd4_layoutget()
1379 accmode |= NFSD_MAY_READ | NFSD_MAY_WRITE; in nfsd4_layoutget()
1388 nfserr = fh_verify(rqstp, current_fh, 0, accmode); in nfsd4_layoutget()