Bjoern A. Zeeb 5ce0eb7f08 Make SIOCGIFADDR and related, as well as SIOCGIFADDR_IN6 and related
jail-aware. Up to now we returned the first address of the interface
for SIOCGIFADDR w/o an ifr_addr in the query. This caused problems for
programs querying for an address but running inside a jail, as the
address returned usually did not belong to the jail.
Like for v6, if there was an ifr_addr given on v4, you could probe
for more addresses on the interfaces that you were not allowed to see
from inside a jail. Return an error (EADDRNOTAVAIL) in that case
now unless the address is on the given interface and valid for the
jail.

PR:		kern/114325
Reviewed by:	rwatson
MFC after:	4 weeks
2009-01-09 13:06:56 +00:00
..
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2008-12-15 06:10:57 +00:00
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2008-12-22 12:54:52 +00:00
2007-12-10 16:03:40 +00:00
2008-12-15 06:10:57 +00:00
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2007-12-10 16:03:40 +00:00
2008-12-15 06:10:57 +00:00