summaryrefslogtreecommitdiffstats
path: root/utils/mountd/auth.c
Commit message (Collapse)AuthorAgeFilesLines
* nfs-utils: have mountd hold open etab file to force inode number to changeJeff Layton2007-05-111-9/+20
| | | | | | | | | | | | | This patch changes mountd to hold the etab file open so that when it's changed by exportfs, the inode number should change. We then change auth_reload to reload the file based on whether st_ino is different from the last time it was checked. It also changes auth_reload to maintain a static counter value and return it instead of a timestamp and fixes up get_exportlist accordingly. Finally, it adds some comments to xtab_write to warn people about editing the etab in place. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
* Ensure 'showmount -e' gets current information.Neil Brown2007-01-111-3/+3
| | | | | | If auth_reload has been called by someone else, get_exportlist can incorrectly return old data. So track modify times better and only use cached data if the modify time matches.
* Don't rely on old info in my_clientJeff Layton2006-12-191-15/+9
| | | | | | | | | | | | | | | | | | | | | | | Here's a new set of patches to fix up "showmount -a", based on the approach suggested by Neil. This first patch is fairly simple. It just stops the current caching of my_client. For an explanation, consider this situation with the current code: 1) Client mounts an NFS export from server that is restricted to a particular hostname or netgroup. 2) DNS or netgroup changes so that the client would be denied. 3) Client attempts mount again. Mount succeeds, even though it shouldn't due to the fact that mountd relies on cached info in my_client. This situation can occur as long as no other client attempts a mount between 1 and 3 above. The patch below removes this caching, and causes a new invocation of client_compose for each pass through auth_authenticate: Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Neil Brown <neilb@suse.de>
* Autogen updateneilbrown2005-12-201-1/+3
|
* auth_reload fixneilbrown2004-12-061-2/+3
|
* fix uninitialise variableneilbrown2004-09-061-0/+1
|
* Assorted fixesneilbrown2003-07-141-1/+0
|
* bug fixneilbrown2003-05-221-5/+4
|
* Support new kernel upcalls for export cache management.neilbrown2003-05-211-14/+54
|
* Define and use get_reliable_hostbynameneilbrown2003-05-211-66/+13
|
* * utils/mountd/auth.c (auth_authenticate_internal): Reverseneilbrown2001-09-121-18/+6
| | | | | | change from 2000-08-02: It causes problems if someone exports to both a hostname and IP addresses. nfs-utils must be consistant about the canonical name that it chooses.
* 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>hjl2000-11-271-1/+5
| | | | | * utils/mountd/auth.c (auth_authenticate): Log the bad path warning.
* 2000-09-26 H.J. Lu <hjl@lucon.org>hjl2000-09-251-2/+3
| | | | | * utils/mountd/auth.c (auth_authenticate_internal): Make sure a non-NULL hostent is always returned.
* 2000-08-02 H.J. Lu <hjl@lucon.org>hjl2000-08-101-6/+17
| | | | | * utils/mountd/auth.c (auth_authenticate_internal): Try to avoid the reverse name lookup.
* Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>hjl2000-01-101-2/+8
| | | | | | | | * utils/mountd/auth.c (auth_authenticate_internal): Call xstrdup for hostname before passing it to gethostbyname. * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead of strdup.
* Fix forward/reverse DNS lookup for authentication.hjl1999-10-261-16/+29
|
* Initial revisionhjl1999-10-181-0/+215