]> git.itanic.dy.fi Git - linux-stable/commit
NFSv4: Turn off open-by-filehandle and NFS re-export for NFSv4.0
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 25 Aug 2022 18:49:05 +0000 (14:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:16:57 +0000 (14:16 +0200)
commit4d065f83565858fd433e1abbda2fc0fda3ac4a87
tree3e728b0ef80276a6e4b19df57d2f43d68b9b2479
parent2f16f5b582cd43898cfdae0d8a0570748f57f266
NFSv4: Turn off open-by-filehandle and NFS re-export for NFSv4.0

[ Upstream commit 2a9d683b48c8a87e61a4215792d44c90bcbbb536 ]

The NFSv4.0 protocol only supports open() by name. It cannot therefore
be used with open_by_handle() and friends, nor can it be re-exported by
knfsd.

Reported-by: Chuck Lever III <chuck.lever@oracle.com>
Fixes: 20fa19027286 ("nfs: add export operations")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/super.c