public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfs: handle servers that support either ALLOW or DENY ACE types.
@ 2014-01-24  3:50 Malahal Naineni
  2014-01-24  5:31 ` Trond Myklebust
  0 siblings, 1 reply; 8+ messages in thread
From: Malahal Naineni @ 2014-01-24  3:50 UTC (permalink / raw)
  To: linux-nfs

Currently we support ACLs if the NFS server file system supports
ALLOW and DENY ACE types. This patch makes the Linux client work with
ACLs if the server supports either ALLOW or DENY ACE types.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
---
 fs/nfs/nfs4proc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 15052b8..4504685 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -4321,9 +4321,9 @@ static int nfs4_proc_renew(struct nfs_client *clp, struct rpc_cred *cred)
 
 static inline int nfs4_server_supports_acls(struct nfs_server *server)
 {
-	return (server->caps & NFS_CAP_ACLS)
-		&& (server->acl_bitmask & ACL4_SUPPORT_ALLOW_ACL)
-		&& (server->acl_bitmask & ACL4_SUPPORT_DENY_ACL);
+	return server->caps & NFS_CAP_ACLS &&
+			(server->acl_bitmask & ACL4_SUPPORT_ALLOW_ACL ||
+			 server->acl_bitmask & ACL4_SUPPORT_DENY_ACL);
 }
 
 /* Assuming that XATTR_SIZE_MAX is a multiple of PAGE_SIZE, and that
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-24 18:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24  3:50 [PATCH] nfs: handle servers that support either ALLOW or DENY ACE types Malahal Naineni
2014-01-24  5:31 ` Trond Myklebust
2014-01-24 14:28   ` Malahal Naineni
2014-01-24 16:11     ` Trond Myklebust
2014-01-24 17:17       ` Malahal Naineni
2014-01-24 17:19       ` [PATCH] nfs: handle servers that support only ALLOW ACE type Malahal Naineni
2014-01-24 17:58         ` Trond Myklebust
2014-01-24 18:56           ` Malahal Naineni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox