svn commit: r194923 - head/sys/kern
Jamie Gritton
jamie at FreeBSD.org
Wed Jun 24 22:06:57 UTC 2009
Author: jamie
Date: Wed Jun 24 22:06:56 2009
New Revision: 194923
URL: http://svn.freebsd.org/changeset/base/194923
Log:
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)
Modified:
head/sys/kern/kern_jail.c
Modified: head/sys/kern/kern_jail.c
==============================================================================
--- head/sys/kern/kern_jail.c Wed Jun 24 22:04:04 2009 (r194922)
+++ head/sys/kern/kern_jail.c Wed Jun 24 22:06:56 2009 (r194923)
@@ -3151,9 +3151,11 @@ prison_check_af(struct ucred *cred, int
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)
More information about the svn-src-all
mailing list