X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmountd%2Fauth.c;h=13eba70b7bcbab152d2d6a50f4776175c6e48879;hb=e8a54a3d5e32c9de009f84d1ef3f26d2dffbf226;hp=41a57db8e843e04ff5884f0d54f5f36485eb0cea;hpb=5ccc7064cb5f59b29586474ba7c1f3e8a7255c5f;p=nfs-utils.git 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;