alistair23-linux/fs/lockd
Chuck Lever b85e467634 lockd: Add helper to sanity check incoming NOTIFY requests
lockd accepts SM_NOTIFY calls only from a privileged process on the
local system.  If lockd uses an AF_INET6 listener, the sender's address
(ie the local rpc.statd) will be the IPv6 loopback address, not the
IPv4 loopback address.

Make sure the privilege test in nlmsvc_proc_sm_notify() and
nlm4svc_proc_sm_notify() works for both AF_INET and AF_INET6 family
addresses by refactoring the test into a helper and adding support for
IPv6 addresses.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2008-10-03 17:02:35 -04:00
..
clntlock.c lockd: change nlmclnt_grant() to take a "struct sockaddr *" 2008-10-03 17:02:35 -04:00
clntproc.c lockd: dont return EAGAIN for a permanent error 2008-07-25 10:53:47 -07:00
grace.c nfsd: common grace period control 2008-10-03 16:19:02 -04:00
host.c lockd: Adjust nlmsvc_lookup_host() to accomodate AF_INET6 addresses 2008-10-03 17:02:35 -04:00
Makefile nfsd: common grace period control 2008-10-03 16:19:02 -04:00
mon.c NSM: Use sockaddr_storage for sm_addr field 2008-09-29 18:13:39 -04:00
svc.c nfsd: common grace period control 2008-10-03 16:19:02 -04:00
svc4proc.c lockd: Add helper to sanity check incoming NOTIFY requests 2008-10-03 17:02:35 -04:00
svclock.c lockd: reject reclaims outside the grace period 2008-10-03 16:19:20 -04:00
svcproc.c lockd: Add helper to sanity check incoming NOTIFY requests 2008-10-03 17:02:35 -04:00
svcshare.c
svcsubs.c lockd: Teach nlm_cmp_addr() to support AF_INET6 addresses 2008-09-29 18:13:39 -04:00
xdr.c
xdr4.c