X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fauth.c;fp=utils%2Fmountd%2Fauth.c;h=13eba70b7bcbab152d2d6a50f4776175c6e48879;hp=41a57db8e843e04ff5884f0d54f5f36485eb0cea;hb=b1e28d50c2cf1d52c68c771921fd01f2af1c0a3b;hpb=e0819debc9d1d322e06ca4047a125a4fd8176d13 diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c index 41a57db..13eba70 100644 --- a/utils/mountd/auth.c +++ b/utils/mountd/auth.c @@ -182,6 +182,10 @@ auth_authenticate_internal(char *what, struct sockaddr_in *caller, 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) { *error = illegal_port;