]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:11:27 +0000 (15:11 +0100)
commitf2682ba2c4b00be81eb21738040c1d81f29ad5ed
treeaa1fc768149072edc0093aa5b5704f8670ee935b
parent299b6caa446053071ec140bccd315e1d7402f5e3
NFSv4: Turn off open-by-filehandle and NFS re-export for NFSv4.0

BugLink: https://bugs.launchpad.net/bugs/1995415
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/nfs/super.c