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

jail creation.

Obtained from:	TrustedBSD Project
This commit is contained in:
rwatson 2001-09-26 20:37:15 +00:00
parent e4e5df5075
commit 96b0d9e4f3

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;