diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-07-01 20:46:01 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-07-01 20:46:01 +0000 |
commit | a6307741745243a81536f88239cf1e81870132d5 (patch) | |
tree | 7f341aa1a0a6e9a90fff3e64ba135502a0890d02 /sys/kern | |
parent | f38898a72f961612cebfb7b8b1e5baf42770359f (diff) | |
download | FreeBSD-src-a6307741745243a81536f88239cf1e81870132d5.zip FreeBSD-src-a6307741745243a81536f88239cf1e81870132d5.tar.gz |
The jail syscall calls chroot, which is not mpsafe, so put back a
mtx_lock(&Giant) around that call.
Reviewed by: arr
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_jail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index cf3b03c..1d76593 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -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(); |