summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2021-01-12 00:01:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-23 17:48:45 +0300
commit0f60f9d1e6182d9440614c13cdf6106e2d470f89 (patch)
tree55481f31a4fac9ad11f5e94f45b9f52705921637 /drivers/net/ethernet
parent83bd727805e5dea4d4b67a9857f7db330c837e92 (diff)
downloadlinux-0f60f9d1e6182d9440614c13cdf6106e2d470f89.tar.xz
nfsd4: readdirplus shouldn't return parent of export
commit 51b2ee7d006a736a9126e8111d1f24e4fd0afaa6 upstream. If you export a subdirectory of a filesystem, a READDIRPLUS on the root of that export will return the filehandle of the parent with the ".." entry. The filehandle is optional, so let's just not return the filehandle for ".." if we're at the root of an export. Note that once the client learns one filehandle outside of the export, they can trivially access the rest of the export using further lookups. However, it is also not very difficult to guess filehandles outside of the export. So exporting a subdirectory of a filesystem should considered equivalent to providing access to the entire filesystem. To avoid confusion, we recommend only exporting entire filesystems. Reported-by: Youjipeng <wangzhibei1999@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions