Age | Commit message (Collapse) | Author |
|
* ps.c (main): Fix return type to int, and use return.
* ids.c (main): Likewise.
* w.c (main): Likewise.
* login.c (main): Likewise.
* settrans.c (main): Likewise.
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* storeinfo.c (main): Likewise.
|
|
Use ugids_verify_make_auth instead of ugids_verify and ugids_make_auth.
|
|
New variable.
(main):
Use ugids operations instead of doing [ug]id frobbing ourselves.
(options):
Remove uid/gid args.
<ugids.h>:
New include.
|
|
Add user-in-group-0-can-use-his-own-password-to-su hack.
|
|
* login.c (add_utmp_entry): Revert change of December 10, 1996.
|
|
* login.c (add_utmp_entry): ut_addr has changed to be an array;
stash the IP address in the first slot.
|
|
|
|
Deal with crypt failing.
|
|
Look for NOBODY in ARGS_DEFS too, and use a last ditch default if we can't
find it anywhere.
|
|
Only declare reference to crypt weak if HAVE_CRYPT isn't defined.
|
|
|
|
|
|
(options):
Change --inherit-environ to --preserve-environment.
Change --no-environ to --no-environment-args.
Change --environ to --envvar and --environ-default to --envvar-default.
|
|
|
|
|
|
|
|
|
|
Get rid of `Beware of dog' -- it can't ever happen.
Rename watch_login calls to check_login; don't use return value.
(check_login):
Renamed from watch_login. Change type to void.
Exit if there's no such process.
|
|
(watch_login): New function.
(dog): Use watch_login. Get rid of wierd rules for root-gone-away.
|
|
|
|
|
|
Include all args in the asprintf.
Put the ARGV message in parens.
|
|
(dog): Take new ARGV argument, and record status in it for ps.
(main): Pass ARGV to dog.
(add_utmp_entry): Always fill in UTMP.ut_line. Set UTMP.ut_type.
|
|
|
|
(main: child_lookup): Pass 0 for new LOOKUP arg to hurd_file_name_path_lookup.
(get_utmp_host): Function removed.
(add_utmp_entry): Get rid of TTY_FD parameter. Don't search for the tty
unless we need it to get the old host, since login does it for us.
Also use the `existing host' in the case that a new one isn't specified.
(main): Update call to add_utmp_entry.
|
|
(add_utmp_entry): Use gettimeofday instead of time to get the time.
|
|
|
|
(dog): Don't kill session if the user logged in! Print newline before message.
|
|
|
|
|
|
|
|
Only add utmp entry for session leader.
Clear process owner if no uids.
Fork self-destruct timer when appropiate.
(default_args): Add NOAUTH_TIMEOUT entry.
(check_owned, kill_login, dog): New functions.
(options, main): Remove -z/--no-utmp option.
|
|
|
|
(main): Remove const from decl of USER & ARG.
(fail): Remove const from decl of VIA.
|
|
(main) [fail]: Declare VIA `char const *'.
(main): Declare USER `char const *'.
Declare ARG `char const *'.
(main): Provide new third arg to proc_setowner.
(main) [parse_opt] [case ARGP_KEY_ARG]: Cast first arg of argz_create
appropriately.
(main): Likewise.
|
|
|
|
|
|
|
|
Don't ask for a password unecessarily.
When the user is specified as the first argument, always add it as both
effective, real, and saved ids, even if there are others already.
Only chown the tty if NO_LOGIN isn't set.
Avoid duplicating the old real id when keeping the old ids.
|
|
|
|
|
|
Put LOGNAME in the environ even if it was already.
Try to set the default path using confstr().
Call setlogin().
Turn on RETRY when the -h option is specified.
(options, main):
Change the -R/--retry option so that the optional argument is an argument
to add to those passed to login when retrying, and remove all the hardwired
arguments (except propagating -h/--via).
(main, default_args):
Replace the BACKUP_SHELL param with BACKUP_SHELLS, which is a list of
things to try. The default includes both bash and the /bin/sh.
(default_args, options, main):
Get rid of the -n/--nobody option and variables, making it an additional
login parameter.
(add_utmp_entry): Get rid of declaration for login().
(copied_args): Add "USER".
(default_args, default_env): Make the default path just /bin.
|
|
Use add_canonical_host() to implement the -h option.
Only let root specify the login host.
child_lookup() now takes an additional PATH arg, and calls
hurd_file_name_path_lookup() instead.
Pass a path when looking up the shell executable.
Do all file-name lookups using the target authentication, so that login
isn't a security hole.
Rework how password-checking is done somewhat (only ask when necessary).
Use exec_reauth() instead of our own.
If setting the real [ug]id, also add it as the `saved id'.
Use BACKUP_SHELL instead of FAILURE_SHELL define.
Get rid of various string vars only used once.
(add_canonical_host): New function.
(add_utmp_entry):
Use VIA_ADDR instead of VIA in the utmp entry if it fits better.
(add_entry): Function moved out of main.
(cat): Take an io_t port instead of a file descriptor.
(options, main):
Add -k/--keep & -S/--shell-arg options.
Remove -m/--umask option; use UMASK param instead.
(FAILURE_SHELL): Macro deleted.
(default_args): Add BACKUP_SHELL param.
|
|
(main): Don't ask for password by name if only one user.
|
|
If -f/--no-passwd is specified, get rid of the effect of the login
executable being setuid/gid.
Only set the shell proc's owner to an effective uid.
|
|
|
|
|