Robert Watson fd6aaf7fe1 Anton kindly pointed out (and fixed) a bug in the Jail handling of the
bind() call on IPv4 sockets:

  Currently, if one tries to bind a socket using INADDR_LOOPBACK inside a
  jail, it will fail because prison_ip() does not take this possibility
  into account.  On the other hand, when one tries to connect(), for
  example, to localhost, prison_remote_ip() will silently convert
  INADDR_LOOPBACK to the jail's IP address.  Therefore, it is desirable to
  make bind() to do this implicit conversion as well.

  Apart from this, the patch also replaces 0x7f000001 in
  prison_remote_ip() to a more correct INADDR_LOOPBACK.

This is a 4.4-RELEASE "during the freeze, thanks" MFC candidate.

Submitted by:	Anton Berezin <tobez@FreeBSD.org>
Discussed with at some point:	phk
MFC after:	3 days
2001-08-03 18:21:06 +00:00
..
2001-01-28 06:39:56 +00:00
2001-07-06 01:16:43 +00:00
2001-07-22 00:21:19 +00:00
2001-06-25 18:30:42 +00:00
2000-12-01 08:57:47 +00:00
2001-01-01 23:09:53 +00:00
2001-06-01 10:07:28 +00:00
2001-06-01 10:07:28 +00:00
2000-09-29 13:36:47 +00:00
2000-04-22 15:13:06 +00:00
2001-05-28 01:00:03 +00:00
2001-07-03 21:46:43 +00:00
2000-12-01 08:57:47 +00:00
2001-07-30 19:28:02 +00:00
2001-05-30 03:28:59 +00:00
2001-05-15 18:12:38 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-29 04:01:38 +00:00
2001-06-29 04:01:38 +00:00