jail: add process linkage
authorMateusz Guzik <mjg@FreeBSD.org>
Thu, 10 Mar 2022 18:42:37 +0000 (19:42 +0100)
committerMateusz Guzik <mjg@FreeBSD.org>
Mon, 5 Sep 2022 11:54:47 +0000 (11:54 +0000)
commit5ecb5444aa349246568dc6f9a615630e29191f7c
treebdec8359fe747ad17739ee587aea6109730816aa
parent4bccbf03d81b2bafb93c1674eaa2f70e7226a25a
jail: add process linkage

It allows iteration over processes belonging to given jail instead of
having to walk the entire allproc list.

Note the iteration can miss processes which remains bug-compatible
with previous code.

Reviewed by: jamie (previous version), markj (previous version)
Differential Revision: https://reviews.freebsd.org/D34522
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_jail.c
sys/sys/jail.h
sys/sys/proc.h