nfsd: rename MAY_ flags
Rename nfsd_permission() specific MAY_* flags to NFSD_MAY_* to make it clear, that these are not used outside nfsd, and to avoid name and number space conflicts with the VFS. [comment from hch: rename MAY_READ, MAY_WRITE and MAY_EXEC as well] Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
committed by
J. Bruce Fields
parent
599eb3046a
commit
8837abcab3
@@ -1722,9 +1722,9 @@ nfsd4_process_open2(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nf
|
||||
/* Stateid was not found, this is a new OPEN */
|
||||
int flags = 0;
|
||||
if (open->op_share_access & NFS4_SHARE_ACCESS_READ)
|
||||
flags |= MAY_READ;
|
||||
flags |= NFSD_MAY_READ;
|
||||
if (open->op_share_access & NFS4_SHARE_ACCESS_WRITE)
|
||||
flags |= MAY_WRITE;
|
||||
flags |= NFSD_MAY_WRITE;
|
||||
status = nfs4_new_open(rqstp, &stp, dp, current_fh, flags);
|
||||
if (status)
|
||||
goto out;
|
||||
@@ -2610,7 +2610,7 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
||||
return nfserr_inval;
|
||||
|
||||
if ((status = fh_verify(rqstp, &cstate->current_fh,
|
||||
S_IFREG, MAY_LOCK))) {
|
||||
S_IFREG, NFSD_MAY_LOCK))) {
|
||||
dprintk("NFSD: nfsd4_lock: permission denied!\n");
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user