Commit Graph

248 Commits

Author SHA1 Message Date
Todd C. Miller
406056d7e5 move authentication code to auth.c 1999-06-03 15:51:07 +00:00
Todd C. Miller
80287c981c Move interface-related defines to interfaces.h so we don't have to include
<netinet/in.h> everywhere.
1999-05-17 01:36:30 +00:00
Todd C. Miller
8e8fbc251e catch case where cmnd_safe is not set (this should not be possible) 1999-04-10 04:37:35 +00:00
Todd C. Miller
59b0cff8cf Stash the "safe" path (ie: the one listed in sudoers) to the command instead
of stashing the struct stat.  Should be safer.
1999-04-10 04:10:01 +00:00
Todd C. Miller
0d67007d1b In estrdup(), do the malloc ourselves so we don't need to rely on the
system strdup(3) which may or may not exist.  There is now no need to
provide strdup() for those w/o it.  Also, the prototype for estrdup()
was wrong, it returns char * and its param is const.
1999-04-06 17:55:01 +00:00
Todd C. Miller
d53f3818ad Kill GLOBAL_NO_SPW_ENT (not used) and crank GLOBAL_PROBLEM 1999-04-06 05:38:59 +00:00
Todd C. Miller
1818ace053 Definitions of *_matched were wrong--user top, not top-2 as subscript. 1999-04-06 05:08:40 +00:00
Todd C. Miller
499e869237 Add VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command
but the NOPASSWD flag was set.
Make runasspec, runaslist, runasuser, and nopasswd typeless in parse.yacc
Add support for '!' in the runas list
Fix double printing of '%' and '+' for groups and netgroups respectively
Add *_matched macros (no need for local stack variable).  Should only be
used directly after a pop (since top must be >= 2).
1999-04-06 05:00:29 +00:00
Todd C. Miller
e6deacb6c4 Crank version to 1.6 and combine copyright statements 1999-04-05 20:57:25 +00:00
Todd C. Miller
79c46d1c81 ++version 1999-03-29 04:05:15 +00:00
Todd C. Miller
382ef75493 Use emalloc/erealloc/estrdup 1999-03-29 02:59:34 +00:00
Todd C. Miller
a3029dedd8 If the user enters an empty password and really has no password, accept
the empty password they entered.  Perviously, they could enter anything
*but* an empty password.  Also, add GETPASS macro that calls either
tgetpass() or getpass() depending on how sudo was configured.
Problem noted by jdg@maths.qmw.ac.uk
1999-02-07 00:43:24 +00:00
Todd C. Miller
52916f16ac add explicate copyright 1999-02-03 04:32:19 +00:00
Todd C. Miller
2519622730 testing Sudo tag 1999-01-17 22:56:56 +00:00
Todd C. Miller
d3aaf52283 crank version and regen files 1999-01-17 22:40:55 +00:00
Todd C. Miller
3983a7a651 kerb5 support from fcusack@iconnet.net 1999-01-17 22:08:55 +00:00
Todd C. Miller
0900eabf3b go back to printing "command not found" unless --disable-path-info
specified.  Also, tell user when we ignore '.' in their path and
it would have been used but for --with-ignore-dot.
1998-11-08 20:56:52 +00:00
Todd C. Miller
1548a20d9a tgetpass now has the same args as getpass again 1998-11-03 20:03:12 +00:00
Todd C. Miller
261cdb5d87 add pass_warn() which prints out INCORRECT_PASSWORD or an insult to stderr 1998-10-24 23:28:04 +00:00
Todd C. Miller
1dffdd17c3 add SIA support 1998-10-19 00:22:38 +00:00
Todd C. Miller
16d565dd81 move Syslog_* defs into sudo.h 1998-10-18 23:10:18 +00:00
Todd C. Miller
f4bef103d5 added check_secureware 1998-10-18 22:16:10 +00:00
Todd C. Miller
0ef9f25d7e updated version 1998-09-17 16:27:15 +00:00
Todd C. Miller
0c040bfc59 HAVE_GETWD -> HAVE_GETCWD 1998-09-07 02:51:05 +00:00
Todd C. Miller
12477fd6e6 updated version 1998-04-06 03:35:50 +00:00
Todd C. Miller
36ef6aa489 fix version 1998-04-06 03:34:36 +00:00
Todd C. Miller
3b1be424aa updated version 1998-04-06 03:17:56 +00:00
Todd C. Miller
e37e1e56b6 updated version 1998-03-31 05:05:49 +00:00
Todd C. Miller
c866646cdf updated version 1998-02-18 21:39:31 +00:00
Todd C. Miller
2fc787d5f6 updated version 1998-02-17 02:43:17 +00:00
Todd C. Miller
bc7803cd08 updated version 1998-02-06 20:49:24 +00:00
Todd C. Miller
ca5babc430 updated version 1998-01-21 06:29:42 +00:00
Todd C. Miller
bb6a33e080 updated version 1998-01-21 05:50:58 +00:00
Todd C. Miller
acea5f29e9 sudoers_fp is now extern 1998-01-21 05:04:43 +00:00
Todd C. Miller
166789a1dd ++version 1998-01-13 04:48:42 +00:00
Todd C. Miller
23b2719a37 command_alias -> generic_alias 1996-11-14 20:09:12 +00:00
Todd C. Miller
5e723efe75 ++version 1996-11-14 02:37:56 +00:00
Todd C. Miller
f59e97e491 added MODE_RESET_HOME
/
1996-10-07 04:53:40 +00:00
Todd C. Miller
6a230806a8 courtesan 1996-09-08 00:21:42 +00:00
Todd C. Miller
d189849b44 ++version 1996-08-30 00:37:04 +00:00
Todd C. Miller
259ced1cc9 new tgetpass() params 1996-08-29 21:58:30 +00:00
Todd C. Miller
daa856faa9 ++version 1996-08-17 23:21:24 +00:00
Todd C. Miller
76d7bf617a name nad type changes 1996-08-17 23:18:08 +00:00
Todd C. Miller
c3991cf7e7 added struct command_alias 1996-08-17 17:22:02 +00:00
Todd C. Miller
8d4d6aebfc added struct sudo_match 1996-08-09 22:06:40 +00:00
Todd C. Miller
7fb14dd3fe added cmnd_args 1996-07-22 19:31:16 +00:00
Todd C. Miller
08470fd767 added declarations for yyparse() and yylex() 1996-06-20 04:41:55 +00:00
Todd C. Miller
5f7eaa954a removed PERM_FULL_ROOT 1996-04-28 21:20:01 +00:00
Todd C. Miller
6b725ac513 added support for NO_PASSWD and runas from garp@opustel.com
replaced SUDOERS_OWNER with SUDOERS_UID and SUDOERS_GID     and added support fro SUDOERS_MODE
1996-04-28 01:02:31 +00:00
Todd C. Miller
058a58a501 now uses shost even if not FQDN 1996-03-11 19:05:55 +00:00