diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-07-03 19:39:02 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-07-20 14:58:46 -0400 |
commit | 7b8f4586532f36c5541a15d072576e7e89a5df75 (patch) | |
tree | 92dd3cff6b5bfdb4cd5da04390b99db5b5d1dde6 /fs/nfsd/nfs3acl.c | |
parent | e446d66dd77fa8fbb505a9940bf637649c9b45f2 (diff) | |
download | op-kernel-dev-7b8f4586532f36c5541a15d072576e7e89a5df75.zip op-kernel-dev-7b8f4586532f36c5541a15d072576e7e89a5df75.tar.gz |
nfsd: Add macro NFS_ACL_MASK for ACL
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs3acl.c')
-rw-r--r-- | fs/nfsd/nfs3acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs3acl.c b/fs/nfsd/nfs3acl.c index 882b1a1..01df4cd 100644 --- a/fs/nfsd/nfs3acl.c +++ b/fs/nfsd/nfs3acl.c @@ -41,7 +41,7 @@ static __be32 nfsd3_proc_getacl(struct svc_rqst * rqstp, inode = d_inode(fh->fh_dentry); - if (argp->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT)) + if (argp->mask & ~NFS_ACL_MASK) RETURN_STATUS(nfserr_inval); resp->mask = argp->mask; @@ -148,7 +148,7 @@ static int nfs3svc_decode_setaclargs(struct svc_rqst *rqstp, __be32 *p, if (!p) return 0; args->mask = ntohl(*p++); - if (args->mask & ~(NFS_ACL|NFS_ACLCNT|NFS_DFACL|NFS_DFACLCNT) || + if (args->mask & ~NFS_ACL_MASK || !xdr_argsize_check(rqstp, p)) return 0; |