]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
jail: re-commit 811e27fa3c44 with fixes
authorJamie Gritton <jamie@FreeBSD.org>
Thu, 25 Feb 2021 05:54:49 +0000 (21:54 -0800)
committerJamie Gritton <jamie@FreeBSD.org>
Thu, 25 Feb 2021 05:54:49 +0000 (21:54 -0800)
commitc861373bdff90d8167a0d998899ca718ccdb541b
tree2bdfe3bd08583a43361fbd27479576ae83b9dc83
parent19cd12a32afe801dc5e753013993e15e924ceb39
jail: re-commit 811e27fa3c44 with fixes

Make sure PD_KILL isn't passed to do_jail_attach, where it might end
up trying to kill the caller's prison (even prison0).

Fix the child jail loop in prison_deref_kill, which was doing the
post-order part during the pre-order part.  That's not a system-
killer, but make jails not always die correctly.
sys/kern/kern_jail.c