Todd C. Miller
fa96e1c86e
More to a less restrictive, ISC-style license.
2004-02-13 21:36:43 +00:00
Todd C. Miller
de6ff287e8
Make sudo_pwdup() act like OpenBSD pw_dup() and allocate memory in
...
one chunk for easy free()ing. Also change it from static to extern.
2004-01-16 23:04:07 +00:00
Todd C. Miller
505b424a56
add DARPA credit on affected files
2003-04-16 00:42:10 +00:00
Todd C. Miller
ea24bef19c
The SHELL environment variable was preserved from the user's
...
environment instead of being reset based on the passwd database
when the "env_reset" option was used. Now it is reset as it should be.
2002-01-15 23:43:59 +00:00
Todd C. Miller
f61723c47b
o Reorder some headers and use STDC_HEADERS define properly
...
o Update copyright year
2001-12-14 19:52:47 +00:00
Todd C. Miller
11127e3468
Use setpwent()/endpwent() + all the shadow variants to make sure
...
we don't inadvertantly leak an fd to the child. Apparently Linux's
shadow routines leave the fd open even if you don't call setspent().
Reported by mike@gistnet.com ; different patch used.
2001-05-10 18:55:12 +00:00
Todd C. Miller
998631b73a
New Defaults options:
...
o stay_setuid - sudo will remain setuid if system has saved uids or setreuid(2)
o env_reset - reset the environment to a sane default
o env_keep - preserve environment variables that would otherwise be cleared
No longer use getenv/putenv/setenv functions--do environment munging by hand.
Potentially dangerous environment variables can be cleared only if they
contain '/' pr '%' characters to protect buggy programs.
Moved environment routines into env.c (new file)
2000-12-30 03:29:47 +00:00
Todd C. Miller
0208b22686
Add support for BSD authentication.
2000-10-26 16:42:40 +00:00
Todd C. Miller
165bd7fafb
Fix root, runas, and target authentication for non-passwd file auth
...
methods.
2000-05-09 15:42:38 +00:00
Todd C. Miller
09b23e7b41
Add rootpw, runaspw, and targetpw options.
2000-02-18 17:56:28 +00:00
Todd C. Miller
7769bf6a32
o Change defaults stuff to put the value right in the struct.
...
o Implement mailer_flags
o Store syslog stuff both in int and string form. Setting the string
form magically updates the int version.
o Add boolean attribute to strings where it makes sense to say !foo
1999-10-07 21:21:08 +00:00
Todd C. Miller
3a8c0ca966
include strings.h everywhere we include string.h
1999-08-28 09:24:15 +00:00
Todd C. Miller
b13e8006ec
Add check for LONG_IS_QUAD
...
#undef MAXINT before including hpsecurity.h to silence an HP-UX warning
Check for U?LONG_LONG_MAX in snprintf.c and use LONG_IS_QUAD
1999-08-22 09:59:28 +00:00
Todd C. Miller
3a8b0be635
o --with-otp deprecated, use --without-passwd instead
...
o real dependencies in the Makefile
o --with-devel option to enable yacc, lex, and -Wall
o style -- "foo -> bar" becomes "foo->bar"
o ALL goes back to being a token, not a string but don't leak memory
o rename hsotspec -> host in parse.yacc
1999-08-14 15:34:55 +00:00
Todd C. Miller
ca8eb6f2aa
add 4th term to license similar to term 5 in the apache license
1999-07-31 16:19:45 +00:00
Todd C. Miller
692fe8cdb3
BSD-style copyright, cosmetic changes
1999-07-22 12:49:28 +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
850a52aa6f
o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
...
It turns out the old DES crypt does the right thing with passwords
longert than 8 characters.
o Fix common typo (necesary -> necessary)
o Update TODO list
1999-05-14 16:30:14 +00:00
Todd C. Miller
06e586ee7b
Function names should be flush with the start of the line so they can be found trivially in an editor and with grep
1999-04-10 04:49:03 +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
52916f16ac
add explicate copyright
1999-02-03 04:32:19 +00:00
Todd C. Miller
826fe213f2
add sudo tags
1999-01-17 23:16:20 +00:00
Todd C. Miller
d3aaf52283
crank version and regen files
1999-01-17 22:40:55 +00:00
Todd C. Miller
62dba8f4d1
more -Wall
1998-11-18 04:16:13 +00:00
Todd C. Miller
c253188f55
-Wall
1998-11-18 03:51:10 +00:00
Todd C. Miller
2fb6e41a5b
typo
1998-11-04 22:13:59 +00:00
Todd C. Miller
de21acbb37
kill perror("malloc") since we already have a good error messages
...
pw_ent -> pw for brevity
1998-11-04 01:39:18 +00:00
Todd C. Miller
918306ecc8
add iscomsec, issecure support
1998-11-03 20:02:52 +00:00
Todd C. Miller
a91e6bc124
init crypt_type to INT_MAX since it is legal to be negative in DUNX 5.0
1998-10-22 00:19:01 +00:00
Todd C. Miller
7ffee3b997
getprpwuid is broken in HP-UX 10.20 at least (it sleeps for 2 minutes if the
...
shadow files don't exist).
1998-10-21 23:50:10 +00:00
Todd C. Miller
3d92a1bb92
new dunix shadow code, use dispcrypt(3)
1998-10-19 18:32:39 +00:00
Todd C. Miller
5bfb481ca7
no more options.h
1998-10-15 05:41:26 +00:00
Todd C. Miller
1c66c857e4
new shadow password scheme. Always include shadow support if the
...
platform supports it and the user did not disable it via configure
1998-09-21 04:00:56 +00:00
Todd C. Miller
0ef9f25d7e
updated version
1998-09-17 16:27:15 +00:00
Todd C. Miller
12477fd6e6
updated version
1998-04-06 03:35:50 +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
0c362fb216
updated version
1998-01-21 06:33:06 +00:00
Todd C. Miller
bb6a33e080
updated version
1998-01-21 05:50:58 +00:00
Todd C. Miller
166789a1dd
++version
1998-01-13 04:48:42 +00:00
Todd C. Miller
5e723efe75
++version
1996-11-14 02:37:56 +00:00
Todd C. Miller
e712f1152c
++version
1996-10-07 05:05:33 +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
35825133a7
++version
1996-08-17 23:25:40 +00:00
Todd C. Miller
b7670208d2
added AUTH_CRYPT_C1CRYPT support
1996-07-26 18:09:00 +00:00