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:
parent
1e9b3d9142
commit
f2f2285a6a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user