diff options
author | jamie <jamie@FreeBSD.org> | 2009-06-24 22:06:56 +0000 |
---|---|---|
committer | jamie <jamie@FreeBSD.org> | 2009-06-24 22:06:56 +0000 |
commit | 3a4b2dc4d4ceeae550d1068d15c397bd098e73ca (patch) | |
tree | 862546b20ec8263b0f169a646b5f672ba2bae319 /sys/kern/kern_jail.c | |
parent | 1f2b1b2840fc50dc3796a1eada55b57d93f00316 (diff) | |
download | FreeBSD-src-3a4b2dc4d4ceeae550d1068d15c397bd098e73ca.zip FreeBSD-src-3a4b2dc4d4ceeae550d1068d15c397bd098e73ca.tar.gz |
Wrap a PR_VNET inside "#ifdef VIMAGE" since that the only place it applies.
bz wants the blame for this.
Noticed by: rwatson
Approved by: bz (mentor)
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r-- | sys/kern/kern_jail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 3fe1ef7..c96307d 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -3151,9 +3151,11 @@ prison_check_af(struct ucred *cred, int af) KASSERT(cred != NULL, ("%s: cred is NULL", __func__)); pr = cred->cr_prison; +#ifdef VIMAGE /* Prisons with their own network stack are not limited. */ if (pr->pr_flags & PR_VNET) return (0); +#endif error = 0; switch (af) |