HomeFreeBSD

Create a dedicated function for ensuring that cdir and rdir are populated.

Description

Create a dedicated function for ensuring that cdir and rdir are populated.

Previously several places were doing it on its own, partially
incorrectly (e.g. without the filedesc locked) or even actively harmful
by populating jdir or assigning rootvnode without vrefing it.

Reviewed by: kib

Details

Provenance
mjgAuthored on
Reviewer
kib
Parents
rS285390: Move chdir/chroot-related fdp manipulation to kern_descrip.c
Branches
Unknown
Tags
Unknown