]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
statd - use dnsname to ensure correct matching of NOTIFY requests.
authorNeil Brown <neilb@suse.de>
Thu, 29 Mar 2007 03:08:08 +0000 (13:08 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 29 Mar 2007 03:08:08 +0000 (13:08 +1000)
When lockd asks to monitor a host, we find the FQDN from the DNS
and remember that, both internally and in the /var/lib/nfs/sm/*
file.
When we receive an SM_NOTIFY request, we compare both the
mon_name and the source IP address against that DNS name to find
a match.

If a DNS name is not available, we fall back to the name provided by
lockd, which at least is known to map to an IP address via
gethostbyname.

Signed-off-by: Neil Brown <neilb@suse.de>

No differences found