From: Chuck Lever Date: Fri, 3 Oct 2008 16:50:44 +0000 (-0400) Subject: lockd: Add helper to sanity check incoming NOTIFY requests X-Git-Tag: v2.6.28-rc1~576^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b85e4676344fc4d7ec5e0f62c3d3712e48bbe223;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed