From 6eba4e22ce2b10bcfb19fbb253f7e235afbaa406 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 19 Apr 2013 13:09:27 -0400 Subject: mountd: fix exporting of "/" with sec= setting. Commit 91bb95f2689e84856ecdf6fac365489d36709cf9 4set_root: force "fsid=0" for all exports of '/' set NFSEXP_FSID for the export of "/" if nothing else had any fsid set, however it didn't also set the flag for all security flavours. So the kernel complains that the flags on the security flavours don't match and it rejects the export. So call fix_pseudoflavor_flags() in write_secinfo() to make sure that any fiddling that has been done to e_flags gets copied to e_secinfo. Signed-off-by: NeilBrown Signed-off-by: Steve Dickson --- utils/mountd/cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'utils') diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index e1027f3..737927c 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -737,6 +737,7 @@ static void write_secinfo(FILE *f, struct exportent *ep, int flag_mask) /* There was no sec= option */ return; } + fix_pseudoflavor_flags(ep); qword_print(f, "secinfo"); qword_printint(f, p - ep->e_secinfo); for (p = ep->e_secinfo; p->flav; p++) { -- cgit