]> git.decadent.org.uk Git - nfs-utils.git/commit
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)
commit0da56f7d359475837008ea4b8d3764fe982ef512
tree57ada9d84c59c5cd4adbb764ae78f026b773fbbc
parent63d92ed0bc0e62b77e974b10f4ec02f004ef33cc
statd - use dnsname to ensure correct matching of NOTIFY requests.

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>
utils/statd/callback.c
utils/statd/monitor.c
utils/statd/notlist.h