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:
Ian Dowse 2002-07-01 20:46:01 +00:00
parent 1e9b3d9142
commit f2f2285a6a

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();