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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to