PS_CHROOT flag must also be copied when forking. This will block
authorderaadt <deraadt@openbsd.org>
Sun, 2 Jul 2023 11:16:03 +0000 (11:16 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 2 Jul 2023 11:16:03 +0000 (11:16 +0000)
commitb40ba3323ce10dc9107b9230446840ce179ef8bd
treeb6bbc91c1f7a46cbf67591bd32ebfd93931e07b1
parentdf970faa6d1e5eb17fb38c33f3f030ca4c6b9be5
PS_CHROOT flag must also be copied when forking.  This will block
a ypconnect(2) from reading inside an incorrectly configured space.
ok kettenis
sys/kern/kern_fork.c