The elevated privilege level required to perform operations such as chroot() should be dropped immediately after the operation is performed.