History log of /openbsd-src/usr.sbin/chroot/chroot.c (Results 1 – 14 of 14)
Revision Date Author Comments
# 14fcad98 19-May-2015 millert <millert@openbsd.org>

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@


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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

show more ...


# 4d20ea5a 23-May-2005 henning <henning@openbsd.org>

useless endpwent


# 29295d1c 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# fe1256fc 11-Feb-2003 mpech <mpech@openbsd.org>

More -G/-U deletion + style(9) while millert@ is here.
Make sence.

millert@ ok


# 466b9fa7 08-Feb-2003 millert <millert@openbsd.org>

Make the -u and -g options more like the -U and -G options. My intention
was to avoid needless incompatibilities with NetBSD's command line options
but this ended up causing too much confusion on th

Make the -u and -g options more like the -U and -G options. My intention
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@

show more ...


# f24a3c33 22-Dec-2002 millert <millert@openbsd.org>

o check for empty $SHELL and add missing __dead (Andrey Matveev)
o call setlogin() if the -U flag was specified and we either are the session
leader or are able to become it.


# 03d641a9 29-Oct-2002 millert <millert@openbsd.org>

Add -U option to set uid, gid, and group vector based on password database.


# 85a90bd5 25-Oct-2002 millert <millert@openbsd.org>

Add options to set the uid, gid, and group vector after the chroot;
adapted from NetBSD. OK markus@ and previously discussed with Theo.


# cfd5e559 14-Jul-2002 deraadt <deraadt@openbsd.org>

ansi


# 36a04524 13-May-2002 mpech <mpech@openbsd.org>

o) fix order and usage of chroot&chdir;
o) move code up from chroot&chdir block (tftpd);

millert@ ok


# f23c3dec 17-Aug-2000 mickey <mickey@openbsd.org>

openbsd rcsdids


# d6243524 29-Aug-1996 deraadt <deraadt@openbsd.org>

int main


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree