summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_jail.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-11-29 16:17:39 +0000
committerbz <bz@FreeBSD.org>2008-11-29 16:17:39 +0000
commit817305efd56ce8d12b11dad03e764667f4335c62 (patch)
treec0cadfabecadf0d593348fb9474e94210552f981 /sys/kern/kern_jail.c
parent1500739dba91231c16c1f8acc694cb00f375cae3 (diff)
downloadFreeBSD-src-817305efd56ce8d12b11dad03e764667f4335c62.zip
FreeBSD-src-817305efd56ce8d12b11dad03e764667f4335c62.tar.gz
Unbreak the no-networks (no INET/6) build that I broke with
the commit in r185435. Pointyhat: no, but I could need a ski cap for the winter
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r--sys/kern/kern_jail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index b453d58..e4a027c 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -532,11 +532,13 @@ kern_jail(struct thread *td, struct jail *j)
sx_xlock(&allprison_lock);
/* Make sure we cannot run into problems with ambiguous bind()ings. */
+#if defined(INET) || defined(INET6)
error = prison_check_conflicting_ips(pr);
if (error) {
sx_xunlock(&allprison_lock);
goto e_dropcpuset;
}
+#endif
/* Determine next pr_id and add prison to allprison list. */
tryprid = lastprid + 1;
OpenPOWER on IntegriCloud