summaryrefslogtreecommitdiffstats
path: root/support/nfs
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-04-19 13:09:27 -0400
committerSteve Dickson <steved@redhat.com>2013-04-22 12:47:20 -0400
commit6eba4e22ce2b10bcfb19fbb253f7e235afbaa406 (patch)
treeeaab6b7ce60d0c7a788f762b49b33554e177fcf1 /support/nfs
parent302de786930a2c533068f9d8909a817b40f07c32 (diff)
downloadnfs-utils-6eba4e22ce2b10bcfb19fbb253f7e235afbaa406.tar.gz
nfs-utils-6eba4e22ce2b10bcfb19fbb253f7e235afbaa406.tar.xz
nfs-utils-6eba4e22ce2b10bcfb19fbb253f7e235afbaa406.zip
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 <neilb@suse.de> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs')
-rw-r--r--support/nfs/exports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c
index 6c08a2b..dea040f 100644
--- a/support/nfs/exports.c
+++ b/support/nfs/exports.c
@@ -469,7 +469,7 @@ static void clearflags(int mask, unsigned int active, struct exportent *ep)
* ensure that the export flags agree with the flags on each
* pseudoflavor:
*/
-static void fix_pseudoflavor_flags(struct exportent *ep)
+void fix_pseudoflavor_flags(struct exportent *ep)
{
struct export_features *ef;
struct sec_entry *p;