Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.Approved by: re (implicit)Sponsored by: The FreeBSD Foundation
Set $HOME to the correct directory (within the chroot tree).
Add a cwd option which specifies where to chdir(2) after the chroot(2).When using the /home/./foo scheme, this defaults to the rhs (/foo);otherwise it defaults to /.
Experimental pam_chroot module (not connected to the build)