Warner Losh
923dd9a7a7
When you have multiple addresses on the same network on different
...
interfaces (such as when you are part of a carp pool), and you run
rpcbind -h to restrict which interfaces have rpc services, rpcbind can
none-the-less return addresses that aren't in the -h list. This patch
enforces the rule that when you specify -h on the command line, then
services returned from rpcbind must be to one of the addresses listed
in -h, or be a loopback address (since localhost is implicit when
running -h).
The root cause of this is the assumption in addrmerge that there can
be only one interface that matches a given network IP address. This
turns out not to be the case. To retain historical behavior, I didn't
try to fix the routine to prefer the address that the request came
into, since I didn't know the side effects that might cause in the
normal case. My quick analysis suggests that it wouldn't be a
problem, but since this code is tricky I opted for the more
conservative patch of only restricting the reply when -h is in effect.
Hence, this change will have no effect when you are running rpcbind
without -h.
Reviewed by: alfred@
Sponsored by: iX Systems
MFC after: 2 weeks
2010-02-09 18:10:56 +00:00
..
2010-01-21 17:25:12 +00:00
2010-01-02 11:07:44 +00:00
2010-01-21 21:14:28 +00:00
2010-01-14 22:04:08 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:05:34 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-12-30 21:35:34 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-05-18 16:00:18 +00:00
2010-01-02 11:07:44 +00:00
2010-01-04 18:08:16 +00:00
2010-01-13 18:17:53 +00:00
2010-01-02 11:07:44 +00:00
2010-01-20 18:22:56 +00:00
2010-01-07 09:40:34 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2008-11-19 00:09:01 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-11-03 09:17:23 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-24 11:54:32 +00:00
2009-06-24 22:28:48 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-21 03:49:18 +00:00
2010-01-02 11:07:44 +00:00
2010-01-15 16:01:22 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-06-09 05:24:06 +00:00
2009-12-03 09:18:40 +00:00
2010-01-02 11:07:44 +00:00
2009-02-17 23:56:16 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-01-30 15:28:56 +00:00
2010-01-02 11:07:44 +00:00
2009-11-02 12:35:38 +00:00
2009-05-27 18:57:13 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-03-04 18:36:48 +00:00
2010-01-17 12:57:11 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:05:34 +00:00
2009-04-28 20:20:13 +00:00
2010-01-02 11:07:44 +00:00
2009-02-26 21:43:15 +00:00
2009-01-06 14:23:38 +00:00
2010-01-24 14:29:40 +00:00
2010-01-02 11:07:44 +00:00
2010-01-04 15:40:17 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-27 07:37:39 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-22 17:17:47 +00:00
2009-08-17 06:15:08 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:05:34 +00:00
2010-01-02 11:07:44 +00:00
2009-12-03 19:16:40 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-08-17 06:15:44 +00:00
2009-04-29 09:50:04 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:05:34 +00:00
2010-01-02 11:07:44 +00:00
2010-01-20 01:07:38 +00:00
2009-06-20 08:46:40 +00:00
2010-01-02 11:07:44 +00:00
2009-05-29 22:19:45 +00:00
2009-05-29 22:19:45 +00:00
2009-05-29 22:19:45 +00:00
2009-06-14 21:39:52 +00:00
2010-01-02 11:07:44 +00:00
2010-01-03 19:28:51 +00:00
2010-01-03 22:29:06 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-22 23:32:10 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-02-04 07:26:26 +00:00
2010-01-16 12:20:26 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2008-09-14 11:50:19 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-02-09 18:10:56 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-02-02 18:38:17 +00:00
2010-01-21 17:25:12 +00:00
2010-01-02 11:07:44 +00:00
2009-11-13 11:28:54 +00:00
2010-01-03 15:32:25 +00:00
2009-12-27 23:15:23 +00:00
2009-04-23 08:37:56 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2008-06-09 08:43:27 +00:00
2010-01-15 16:01:22 +00:00
2010-01-02 11:06:11 +00:00
2010-02-08 21:29:34 +00:00
2010-01-13 18:17:53 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-13 18:15:46 +00:00
2010-01-09 15:37:24 +00:00
2010-01-02 11:07:44 +00:00
2009-02-26 20:59:05 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2008-12-24 22:40:13 +00:00
2010-01-13 03:16:31 +00:00
2010-01-10 19:21:23 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-02-09 17:16:13 +00:00
2008-08-15 13:07:07 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2009-08-23 16:04:10 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-20 16:50:13 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-25 18:52:47 +00:00
2010-01-02 11:07:44 +00:00