Blame SOURCES/nfs-utils-2.3.3-exportfs-man-labels.patch

732391
commit 7d5dcd2358df55353eed94a0e84b77bb3597634e
732391
Author: J. Bruce Fields <bfields@redhat.com>
732391
Date:   Fri Mar 27 13:11:28 2020 -0400
732391
732391
    exports man page: warn about subdirectory exports
732391
    
732391
    Subdirectory exports have a number of problems which have been poorly
732391
    documented.
732391
    
732391
    Signed-off-by: J. Bruce Fields <bfields@redhat.com>
732391
    Signed-off-by: Steve Dickson <steved@redhat.com>
732391
732391
diff --git a/utils/exportfs/exports.man b/utils/exportfs/exports.man
732391
index e3a16f6b..1d171849 100644
732391
--- a/utils/exportfs/exports.man
732391
+++ b/utils/exportfs/exports.man
732391
@@ -494,6 +494,33 @@ export entry for
732391
 .B /home/joe
732391
 in the example section below, which maps all requests to uid 150 (which
732391
 is supposedly that of user joe).
732391
+
732391
+.SS Subdirectory Exports
732391
+
732391
+Normally you should only export only the root of a filesystem.  The NFS
732391
+server will also allow you to export a subdirectory of a filesystem,
732391
+however, this has drawbacks:
732391
+
732391
+First, it may be possible for a malicious user to access files on the
732391
+filesystem outside of the exported subdirectory, by guessing filehandles
732391
+for those other files.  The only way to prevent this is by using the
732391
+.IR no_subtree_check
732391
+option, which can cause other problems.
732391
+
732391
+Second, export options may not be enforced in the way that you would
732391
+expect.  For example, the
732391
+.IR security_label
732391
+option will not work on subdirectory exports, and if nested subdirectory
732391
+exports change the
732391
+.IR security_label
732391
+or
732391
+.IR sec=
732391
+options, NFSv4 clients will normally see only the options on the parent
732391
+export.  Also, where security options differ, a malicious client may use
732391
+filehandle-guessing attacks to access the files from one subdirectory
732391
+using the options from another.
732391
+
732391
+
732391
 .SS Extra Export Tables
732391
 After reading 
732391
 .I /etc/exports