The jail syscall calls chroot, which is not mpsafe, so put back a

mtx_lock(&Giant) around that call.

Reviewed by:	arr
This commit is contained in:
iedowse 2002-07-01 20:46:01 +00:00
parent f38898a72f
commit a630774174

View File

@ -79,7 +79,9 @@ jail(td, uap)
if (error)
goto bail;
ca.path = j.path;
mtx_lock(&Giant);
error = chroot(td, &ca);
mtx_unlock(&Giant);
if (error)
goto bail;
newcred = crget();