]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 8 Jul 2014 18:36:08 +0000 (14:36 -0400)
commit74adf83f5d7720925499b4938f930591f947b660
tree2665f7e14615eb3e0d882603f24710c05b0d522a
parent66b068604903849c5dee3842eb72564064c64c72
nfs: only show Posix ACLs in listxattr if actually present

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 ...)
Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs3acl.c
fs/nfs/nfs3proc.c