nfs: only show Posix ACLs in listxattr if actually present
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Jun 2014 09:07:03 +0000 (11:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 19:52:54 +0000 (12:52 -0700)
commit1e0f78a45f36d311deb20c6dba8b1520bd35d9d7
tree5727f05fc32866659831fe3696360bf225d5fb3e
parent2bd7b4309ac78fa12110c41b05bf5ab45930482a
nfs: only show Posix ACLs in listxattr if actually present

commit 74adf83f5d7720925499b4938f930591f947b660 upstream.

The big ACL switched nfs to use generic_listxattr, which calls all existing
->list handlers.  Add a custom .listxattr implementation that only lists
the ACLs if they actually are present on the given inode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Philippe Troin <phil@fifi.org>
Tested-by: Philippe Troin <phil@fifi.org>
Fixes: 013cdf1088d7 (nfs: use generic posix ACL infrastructure ...)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs3acl.c
fs/nfs/nfs3proc.c