X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.c;h=3769c924d2d22a0e973e19a202d2d31833f40057;hb=460ef2f898148fbc858cffe9d2ac12070131d5dd;hp=b1bce1dfc9c45846a25d237e3af552104fb323d7;hpb=936ecbb5750e0e29b9e2464998a8e03eca617b72;p=nfs-utils.git diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index b1bce1d..3769c92 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -282,6 +282,13 @@ get_rootfh(struct svc_req *rqstp, dirpath *path, int *error, int v3) xlog(L_WARNING, "request to export directory %s below nearest filesystem %s", p, exp->m_export.e_path); *error = NFSERR_ACCES; + } else if (exp->m_export.e_mountpoint && + !is_mountpoint(exp->m_export.e_mountpoint[0]? + exp->m_export.e_mountpoint: + exp->m_export.e_path)) { + xlog(L_WARNING, "request to export an unmounted filesystem: %s", + p); + *error = NFSERR_NOENT; } else if (new_cache) { /* This will be a static private nfs_export with just one * address. We feed it to kernel then extract the filehandle,