[Bug 260894] Nonexportable file systems are usable over NFSv4

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 03 Jan 2022 04:03:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260894

--- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> ---
Hmm. There is a hack that allows certain NFSv4 operations to
be done on file systems that are not exported.
This was done so that the tree (which, unlike NFSv3 can be
multiple file systems) could be traversed to get to the
exported file systems. (Lookup is allowed. I can't remember
if Readdir is also allowed.)

Try doing something like writing to a file in /mnt and
see if that is allowed.

Also, try making /mnt the root in the V4: line on /etc/exports
and see how that works?

(If you haven't looked, vfs_export() is only called after
 VFS_MOUNT() returns 0 in vfs_domount_update(), so the kernel
 exports should not be on /mnt.)

-- 
You are receiving this mail because:
You are the assignee for the bug.