mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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)
This commit is contained in:
parent
30268dfa3f
commit
499650a033
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue