jail: A jail could be removed without calling OSD methods
Fix a long-standing bug where setting nopersist on a process-less jail would remove it without calling the the OSD PR_METHOD_REMOVE methods.
This commit is contained in:
parent
251a6ddfbd
commit
39c8ef90f6
@ -1741,8 +1741,8 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
|
||||
prison_hold(pr);
|
||||
refcount_acquire(&pr->pr_uref);
|
||||
} else {
|
||||
refcount_release(&pr->pr_uref);
|
||||
refcount_release(&pr->pr_ref);
|
||||
drflags |= PD_DEUREF;
|
||||
}
|
||||
}
|
||||
pr->pr_flags = (pr->pr_flags & ~ch_flags) | pr_flags;
|
||||
|
Loading…
Reference in New Issue
Block a user