]> git.baikalelectronics.ru Git - kernel.git/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>
Wed, 28 Sep 2022 09:03:56 +0000 (11:03 +0200)
commita7c97e94fe9550b257d9167f1e7f41801dcd6c9c
tree987efa08986f139854e9b87371559c47fc1209e8
parent2eadf6dec2785bfca171b846b123189c317fd12a
NFSv4: Turn off open-by-filehandle and NFS re-export for NFSv4.0

[ Upstream commit a2f73fe8d989e765490ee296281311677fb64447 ]

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: a478c2295fe2 ("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