From 2612111fe0855f19820803f53ce0447c9b26a52a Mon Sep 17 00:00:00 2001 From: neilbrown Date: Tue, 24 Feb 2004 03:38:33 +0000 Subject: [PATCH] auth_reload calls in cache. --- ChangeLog | 6 ++++++ utils/mountd/cache.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2c49a61..5edfaa1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-24 NeilBrown + from "J. Bruce Fields" + + * utils/mountd/cache.c: call auth_reload to make sure auth data is + current before responding to kernel upcall. + 2004-02-24 NeilBrown Based on patch from Greg Banks diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index a265ecd..3a16641 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -67,6 +67,8 @@ void auth_unix_ip(FILE *f) if (inet_aton(ipaddr, &addr)==0) return; + auth_reload(); + /* addr is a valid, interesting address, find the domain name... */ client = client_compose(addr); @@ -138,6 +140,8 @@ void nfsd_fh(FILE *f) break; } + auth_reload(); + /* Now determine export point for this fsid/domain */ for (i=0 ; i < MCL_MAXTYPES; i++) { for (exp = exportlist[i]; exp; exp = exp->m_next) { @@ -236,6 +240,8 @@ void nfsd_export(FILE *f) if (qword_get(&cp, path, strlen(lbuf)) <= 0) goto out; + auth_reload(); + /* now find flags for this export point in this domain */ for (i=0 ; i < MCL_MAXTYPES; i++) { for (exp = exportlist[i]; exp; exp = exp->m_next) { -- 2.39.2