android_kernel_samsung_sm8650/include/linux/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
..
bind.h nfsd: common grace period control 2008-10-03 16:19:02 -04:00
debug.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
lockd.h lockd: Add helper to sanity check incoming NOTIFY requests 2008-10-03 17:02:35 -04:00
nlm.h Don't include linux/config.h from anywhere else in include/ 2006-04-26 12:56:16 +01:00
share.h [PATCH] lockd endianness annotations 2006-10-20 10:26:40 -07:00
sm_inter.h lockd: introduce new function to encode private argument in SM_MON requests 2008-03-19 18:01:10 -04:00
xdr4.h NLM: Fix sparse warnings 2007-05-14 19:33:46 -04:00
xdr.h NLM: Fix sign of length of NLM variable length strings 2008-02-01 16:42:02 -05:00