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