]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the test prohibiting jails from sharing IP addresses.
authorjamie <jamie@FreeBSD.org>
Sat, 6 Oct 2018 02:10:32 +0000 (02:10 +0000)
committerjamie <jamie@FreeBSD.org>
Sat, 6 Oct 2018 02:10:32 +0000 (02:10 +0000)
commit3755eafea0154f9d4581b0f87ad69fc7484ba79b
tree2e4c0c1141f21133e70b1766ba1aba85e49f56d1
parentbdd6767f98ebbbb1a72d2638f4ca0682ba4d79d1
Fix the test prohibiting jails from sharing IP addresses.

It's not supposed to be legal for two jails to contain the same IP address,
unless both jails contain only that one address.  This is the behavior
documented in jail(8), and is there to prevent confusion when multiple
jails are listening on IADDR_ANY.

VIMAGE jails (now the default for GENERIC kernels) test this correctly,
but non-VIMAGE jails have been performing an incomplete test when nested
jails are used.

Approved by: re@ (kib@)
MFC after: 5 days
sys/kern/kern_jail.c