Skip to content
  • J. Bruce Fields's avatar
    nfsd4: don't continue "under" mounts in V4ROOT case · 3b6cee7b
    J. Bruce Fields authored
    
    
    If /A/mount/point/ has filesystem "B" mounted on top of it, and if "A"
    is exported, but not "B", then the nfs server has always returned to the
    client a filehandle for the mountpoint, instead of for the root of "B",
    allowing the client to see the subtree of "A" that would otherwise be
    hidden by B.
    
    Disable this behavior in the case of V4ROOT exports; we implement the
    path restrictions of V4ROOT exports by treating *every* directory as if
    it were a mountpoint, and allowing traversal *only* if the new directory
    is exported.
    
    Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
    3b6cee7b