]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/auth.c
mountd: better hiding of v4root exports from mountd clients
[nfs-utils.git] / utils / mountd / auth.c
index 0aac273a9df44b68f4d37be2b2b54c13f2ab2594..13eba70b7bcbab152d2d6a50f4776175c6e48879 100644 (file)
@@ -181,10 +181,10 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller,
                        *error = no_entry;
                        return NULL;
                }
-               if (!exp->m_mayexport) {
-                       *error = not_exported;
-                       return NULL;
-               }
+       }
+       if (exp->m_export.e_flags & NFSEXP_V4ROOT) {
+               *error = no_entry;
+               return NULL;
        }
        if (!(exp->m_export.e_flags & NFSEXP_INSECURE_PORT) &&
                     ntohs(caller->sin_port) >= IPPORT_RESERVED) {