jamie 0a7374675b Remove a LOR, where the the sleepable allprison_lock was being obtained
in prison_equal_ip4/6 while an inp mutex was held.  Locking allprison_lock
can be avoided by making a restriction on the IP addresses associated with
jails:

Don't allow the "ip4" and "ip6" parameters to be changed after a jail is
created.  Setting the "ip4.addr" and "ip6.addr" parameters is allowed,
but only if the jail was already created with either ip4/6=new or
ip4/6=disable.  With this restriction, the prison flags in question
(PR_IP4_USER and PR_IP6_USER) become read-only and can be checked
without locking.

This also allows the simplification of a messy code path that was needed
to handle an existing prison gaining an IP address list.

PR:		kern/136899
Reported by:	Dirk Meyer
Approved by:	re (kib), bz (mentor)
2009-07-30 14:28:56 +00:00
..
2009-05-18 12:03:43 +00:00
2009-05-27 16:36:54 +00:00
2008-08-03 21:07:19 +00:00
2008-09-22 10:37:02 +00:00
2009-05-29 14:25:51 +00:00
2007-12-14 21:30:51 +00:00
2009-05-20 02:51:48 +00:00
2009-05-26 09:19:21 +00:00