nfs: we don't support removing system.nfs4_acl
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 28 Jan 2021 22:36:38 +0000 (17:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:44:59 +0000 (14:44 +0200)
commit2bb5ec7f5556a91612f1857c9a1b1eb832a1f8c7
treec67e1e8c60f6299bc7a2f14c28015e4b6cb7b1e8
parent38a3fce79a8335ada89afbb86f1787c3769a6bbe
nfs: we don't support removing system.nfs4_acl

[ Upstream commit 4f8be1f53bf615102d103c0509ffa9596f65b718 ]

The NFSv4 protocol doesn't have any notion of reomoving an attribute, so
removexattr(path,"system.nfs4_acl") doesn't make sense.

There's no documented return value.  Arguably it could be EOPNOTSUPP but
I'm a little worried an application might take that to mean that we
don't support ACLs or xattrs.  How about EINVAL?

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4proc.c