From de108c531e29ba936a68a6efb99095ad6d6cec8f Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 1 Dec 2009 09:04:30 -0500 Subject: [PATCH] exports: hide pseudo exports from clients Don't show pseudo exports when clients ask to see what is exported via the showmount mount command. Signed-off-by: Steve Dickson --- utils/mountd/mountd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 888fd8c..179ef17 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -540,6 +540,10 @@ get_exportlist(void) for (i = 0; i < MCL_MAXTYPES; i++) { for (exp = exportlist[i].p_head; exp; exp = exp->m_next) { + /* Don't show pseudo exports */ + if (exp->m_export.e_flags & NFSEXP_V4ROOT) + continue; + for (e = elist; e != NULL; e = e->ex_next) { if (!strcmp(exp->m_export.e_path, e->ex_dir)) break; -- 2.39.2