[Bug 287977] ZFS NFS exports allows mounts by clients not in the list of /etc/exports (though the files are inaccessible anyway)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 12 Jul 2025 21:28:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287977

systemdlete@fastmail.com <systemdlete@fastmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Closed
         Resolution|---                         |Works As Intended

--- Comment #8 from systemdlete@fastmail.com <systemdlete@fastmail.com> ---
From the very last paragraph of the EXAMPLES section of the freebsd exports(5)
man page:

       Note  that  due  to  different mount behavior between NFSv3 and NFSv4 a
       NFSv4 mount request for a directory that the client does not have  per-
       mission  for  will  succeed and read/write access will fail afterwards,
       whereas NFSv3 rejects the mount request.

So this is EXACTLY the behavior I am experiencing, but I had not read through
the entire man page until now.  If I had, this entire report may have been
obviated.  But...

While I know it is extremely unlikely this will ever be changed because of *nix
tendency to not break backwards compatibility, the behavior--and as designed
apparently--doesn't seem very "unixy" to me; it's almost like something that
was left kind of half-broken during implementation, or maybe even during design
(I haven't read all the NFS RFCs).  I think that is why I quickly concluded
this might be some type of bug.

So I guess the world will continue to use ZFS export mounts as is.  This can be
closed, with me hopefully remembering this inconsistency into the future.

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