When a user is specified via the -u flag, use setusercontext() to
authormillert <millert@openbsd.org>
Tue, 19 May 2015 16:05:12 +0000 (16:05 +0000)
committermillert <millert@openbsd.org>
Tue, 19 May 2015 16:05:12 +0000 (16:05 +0000)
commit14fcad980f4cfaf10d9c8ed599c0a85c88c8aeff
tree72bcefdc6acde1a1ba730d1028b2cbc3a2836365
parentfb094e13d4c7f21b3e90675b17d69b7512fbee69
When a user is specified via the -u flag, use setusercontext() to
setup (most of) the execution environment.  We still have to defer
setting the actual uid until after we change root.  OK deraadt@
usr.sbin/chroot/chroot.8
usr.sbin/chroot/chroot.c