o Initialize per-jail securelevel from global securelevel as part of

jail creation.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2001-09-26 20:37:15 +00:00
parent bda63e26d8
commit 567931c8f6

View File

@ -74,6 +74,7 @@ jail(td, uap)
goto done2;
}
MALLOC(pr, struct prison *, sizeof *pr , M_PRISON, M_WAITOK | M_ZERO);
pr->pr_securelevel = securelevel;
error = copyinstr(j.hostname, &pr->pr_host, sizeof pr->pr_host, 0);
if (error)
goto bail;