Files
linux-stable-mirror/include/linux
Chuck Lever d1208f7073 NLM: nlm_privileged_requester() doesn't recognize mapped loopback address
Commit b85e4676 added the nlm_privileged_requester() helper to check
whether an RPC request was sent from a local privileged caller.  It
recognizes IPv4 privileged callers (from "127.0.0.1"), and IPv6
privileged callers (from "::1").

However, IPV6_ADDR_LOOPBACK is not set for the mapped IPv4 loopback
address (::ffff:7f00:0001), so the test breaks when the kernel's RPC
service is IPv6-enabled but user space is calling via the IPv4
loopback address.  This is actually the most common case for IPv6-
enabled RPC services on Linux.

Rewrite the IPv6 check to handle the mapped IPv4 loopback address as
well as a normal IPv6 loopback address.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2009-01-06 11:53:56 -05:00
..
2009-01-04 12:17:43 +01:00
2009-01-04 12:17:42 +01:00
2009-01-04 13:33:20 -08:00
2008-12-29 08:29:50 +01:00
2009-01-01 10:12:19 +10:30
2008-12-29 08:29:50 +01:00
2009-01-04 13:33:20 -08:00
2009-01-02 12:19:34 -08:00
2008-12-29 17:47:23 +10:00
2008-12-25 11:01:43 +11:00
2008-12-31 18:07:38 -05:00
2008-12-29 07:39:34 -05:00
2008-12-15 23:44:31 -08:00
2009-01-04 13:33:20 -08:00
2009-01-04 13:33:20 -08:00
2008-12-29 11:27:46 +02:00
2008-12-31 18:07:42 -05:00
2008-12-31 18:07:42 -05:00
2009-01-05 08:40:30 -08:00
2009-01-05 08:40:30 -08:00
2008-12-31 15:11:46 +01:00
2009-01-03 14:11:07 +01:00
2008-12-28 22:43:21 -05:00
2009-01-04 16:13:40 -08:00
2008-12-23 15:21:45 -05:00
2008-12-19 15:22:54 -05:00
2008-12-21 14:21:14 +11:00
2008-12-20 09:15:46 +01:00
2009-01-05 18:31:12 -08:00
2009-01-04 13:33:20 -08:00
2008-12-15 23:42:33 -08:00
2008-12-30 09:05:16 +10:30
2009-01-01 10:12:25 +10:30
2009-01-02 10:19:36 -08:00
2008-12-29 08:29:51 +01:00