summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chroot/chroot.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When a user is specified via the -u flag, use setusercontext() tomillert2015-05-191-9/+16
| | | | | setup (most of) the execution environment. We still have to defer setting the actual uid until after we change root. OK deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* useless endpwenthenning2005-05-231-3/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* More -G/-U deletion + style(9) while millert@ is here.mpech2003-02-111-3/+3
| | | | | | Make sence. millert@ ok
* Make the -u and -g options more like the -U and -G options. My intentionmillert2003-02-081-97/+39
| | | | | | | | | | | | was to avoid needless incompatibilities with NetBSD's command line options but this ended up causing too much confusion on the part of the user. The -u option now also sets the group and group vector based on passwd(5) and group(5) unless an alternate group list is specified via the -g option. The -U and -G options have been removed. The resulting code is much simpler and the behavior of chroot(8) seems to better match users' expectations; OK deraadt@
* o check for empty $SHELL and add missing __dead (Andrey Matveev)millert2002-12-221-10/+14
| | | | | o call setlogin() if the -U flag was specified and we either are the session leader or are able to become it.
* Add -U option to set uid, gid, and group vector based on password database.millert2002-10-291-12/+37
|
* Add options to set the uid, gid, and group vector after the chroot;millert2002-10-251-24/+138
| | | | adapted from NetBSD. OK markus@ and previously discussed with Theo.
* ansideraadt2002-07-141-5/+3
|
* o) fix order and usage of chroot&chdir;mpech2002-05-131-3/+3
| | | | | | o) move code up from chroot&chdir block (tftpd); millert@ ok
* openbsd rcsdidsmickey2000-08-171-1/+3
|
* int mainderaadt1996-08-291-1/+3
|
* initial import of NetBSD treederaadt1995-10-181-0/+73