summaryrefslogtreecommitdiff
path: root/usr.bin/lock
AgeCommit message (Collapse)Author
2019-07-24Make sure that -n overrides -t even when -n precedes -t, like itIngo Schwarze
does in FreeBSD and in NetBSD, and fully document that behaviour. Input, feedback, and OK jca@.
2019-07-21While -n is now the default, it's been useful since 1996. Keep it for compat.Jeremie Courreges-Anglas
Agreement from schwarze@ (who proposed a thorough but longer diff) and millert@ ok tb@ kn@ cheloha@
2019-07-21Amend comment: entering the root password won't unlock the terminalJeremie Courreges-Anglas
Mention -p (user password) while here.
2019-07-19lock(1): remove default timeoutcheloha
It makes little sense from a security standpoint to unlock the terminal and expose the user's session after fifteen minutes by default. Default behavior is now to reserve the terminal forever. Add instructions to the manpage to help the user employ the -t timeout option more safely. Manpage greatly improved by jmc@; bug(s) caught by millert@; with input from claudio@. ok millert@
2019-07-05lock(1): make "-n" and "-t timeout" mutually exclusive.cheloha
It doesn't make sense to simultaneously say "never time out" and "release this terminal in a few minutes". Input from kn@. "just go for it" deraadt@
2017-09-06After recent changes, we need to clear hash, not s1.Theo Buehler
From Scott Cheloha ok deraadt
2017-07-08this program was infected with lint era casts. i think we're past that now.Ted Unangst
2017-07-08remove ARGSUSED, from Scott Cheloha.Ted Unangst
and while we're cleaning, switch __progname to getprogname.
2017-07-08use crypt_newhash to protect the password. from Scott ChelohaTed Unangst
2017-07-08clean up some unused variables. also, making a variable global isn't theTed Unangst
best way to zero initialize it if that's all you need.
2017-07-08instead of using time(), refer to getitimer to find out how long theTed Unangst
timeout is. from Scott Cheloha
2017-07-08can just continue after readpassphrase returns null, the sighandler willTed Unangst
have already printed a message. from Scott Cheloha
2017-05-03Use the safe idiom of cleaning sensitive data from memory with explicit_bzero,Ricardo Mestre
instead of relying on other methods, after readpassphrase. Some programs on this diff won't benefit that much since it happens near the terminal path, but someone might copy the unsafe idiom to another program and place it where it may leak sensitive data. Discussed aeons ago with tb@, OK deraadt@ and beck@
2016-05-28repair braces. from ilya.kaliman/gsoares/natanoTed Unangst
2015-10-15lock needs pledge(proc exec) to use bsd auth system. from tronddTed Unangst
2015-10-10normalize a few more tame request orderings, to help reviewTheo de Raadt
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07tame "stdio getpw rpath wpath tty". "tty" allows this to useTheo de Raadt
readpassphrase().
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-08-14some Bx/Ox conversion;Jason McIntyre
From: Jan Stary
2012-01-15Document what remains of the 2BSD heritage.Ingo Schwarze
All facts found on the CSRG CD 1 in the 2bsd directory. Feedback and ok jmc@, ok sobrado@. Note the large number of 3BSD -> 2BSD changes. Kirk McKusick asked Cynthia Livingston (cael@, of USENIX, who converted most manuals from man(7) to mdoc(7) for the 4.3BSD-Net/2 release and added lots of historical information around that time) what happened in this respect, and she answered that she often wrote "appeared in 3BSD" when she was unsure of when a utility was added. Thanks to Kirk and Cynthia for that clarification.
2010-06-13Prevent a segmentation fault. It could occur when login_getclass fails andTobias Stoeckmann
the key "s/key" is entered with supplied -a or -p option. ok millert (with better error message)
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-09-18like login(1), back off password guesses after login-backoff; andMartynas Venckus
reset cnt after login-tries. tweak & ok millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2006-04-26pleasing lint, without displeasing future developersTheo de Raadt
2006-04-26merge parts of strtonum() cleanup from tan.dang@gmail.comTheo de Raadt
2005-07-14- better synopsisJason McIntyre
- sort options - sync usage()
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-08-15knfTheo de Raadt
2002-08-04ansiTheo de Raadt
2002-06-23uid_t and gid_t are unsignedTheo de Raadt
2002-05-08_exit() not exit() in signal handler.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-02avoid stdio in signal handlerTheo de Raadt
2001-05-29adapt to BSD authentication and clean things up a bit while I am at itTodd C. Miller
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-09-03Boring... Add :L modifier to all tweakable variables tests.Marc Espie
Closes PR 1246
2000-03-08Various cleanups and improvements.Aaron Campbell
1999-10-17More consistent introduction to options.Aaron Campbell
1999-09-23Typo fixes.Alex Feldman
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-03-06back out changes that should not have escaped my local treeTodd C. Miller
1999-03-06add missing reference to infocmpTodd C. Miller
1998-11-11remove redundant .Pp macrosAaron Campbell
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell
1997-07-27A bit of KNFTodd C. Miller
1997-07-27-WallTodd C. Miller