Commit Graph

3867 Commits

Author SHA1 Message Date
Todd C. Miller
459b9cb1dd fix typo 2007-06-19 21:27:14 +00:00
Todd C. Miller
e0ae6e100b regen 2007-06-19 21:22:16 +00:00
Todd C. Miller
d1702ca4cb Fix preservation of LDFLAGS in the LDAP case. 2007-06-19 21:21:38 +00:00
Todd C. Miller
5c59e90468 Remove dependecy on NULL 2007-06-19 21:00:30 +00:00
Todd C. Miller
7f21fc74cc regen 2007-06-19 19:37:45 +00:00
Todd C. Miller
c154f0119b Can't use the regular autoconf fnmatch() check since we need
FNM_CASEFOLD so go back to our custom one.
2007-06-19 19:37:09 +00:00
Todd C. Miller
363a2f2593 Fix preserving of variables in env_keep. 2007-06-19 16:53:09 +00:00
Todd C. Miller
f670ef29bc add XAUTHORIZATION 2007-06-19 11:11:42 +00:00
Todd C. Miller
7d8b899e47 expand upon env resetting and mention that it began in 1.6.9 not 1.7. 2007-06-19 00:41:00 +00:00
Todd C. Miller
a922ff68ac Update descriptions of env_keep and env_check to match current reality. 2007-06-19 00:33:55 +00:00
Todd C. Miller
5ac9f1de51 Add LINGUAS to initial_checkenv_table.
Add COLORS, HOSTNAME, LS_COLORS, MAIL, PS1, PS2, XAUTHORITY
to intial_keepenv_table.
2007-06-18 21:33:22 +00:00
Todd C. Miller
c225668972 Treat USERNAME environemnt variable like LOGNAME/USER 2007-06-18 21:23:48 +00:00
Todd C. Miller
549c88d513 Don't need to populate keepenv table with the contents of the checkenv table. 2007-06-18 21:21:30 +00:00
Todd C. Miller
4dcaba90a0 Don't force sudo into the C locale. 2007-06-18 12:57:21 +00:00
Todd C. Miller
e096ae6f13 Make env_check apply when env_reset it true. Environment variables are
passed through unless they contain '/' or '%'.  There is no need
to have a variable in both env_check and env_keep.
2007-06-18 12:56:11 +00:00
Todd C. Miller
db084676e5 Remove an duplicate lock_file() call and add a comment. 2007-06-16 11:31:56 +00:00
Todd C. Miller
a162c16345 Add sudo 1.6.9 upgrade note. 2007-06-16 01:16:38 +00:00
Todd C. Miller
f58f637707 Solaris will return EINVAL if the buffer used in SIOCGIFCONF is too
small.  From Klaus Wagner.
2007-06-14 16:23:57 +00:00
Todd C. Miller
49cb30aa5b Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
Include memrchr() for systems without it.
2007-06-14 16:06:25 +00:00
Todd C. Miller
889f928e5f Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
Include memrchr() for systems without it.
2007-06-14 16:03:53 +00:00
Todd C. Miller
c22096ac33 Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
Include memrchr() for systems without it.
2007-06-14 16:03:53 +00:00
Todd C. Miller
1f38301a5d Since we need to be able to convert timespec to timeval for
utimes() the last 3 digits in the tv_nsec are not significant.
This makes the sudoedit file date comparison work again.
2007-06-14 11:09:49 +00:00
Todd C. Miller
4a7c81886e Add SUDO_ADD_AUTH macro to deal with adding things to AUTH_OBJS.
This deals with exclusive authentication methods in a simple way.
2007-06-13 17:41:44 +00:00
Todd C. Miller
927c229b90 mkstemp.c is BSD code too. 2007-06-12 17:08:21 +00:00
Todd C. Miller
3f2230617e No commercial support for now. 2007-06-12 13:21:40 +00:00
Todd C. Miller
7fb914ea0a cleanenv() is no more. 2007-06-11 22:27:43 +00:00
Todd C. Miller
214f7d07fb Display branch info in Changelog 2007-06-10 22:37:15 +00:00
Todd C. Miller
ce92c1cf6a Include config.h early so we have it for TIME_WITH_SYS_TIME 2007-06-10 22:18:46 +00:00
Todd C. Miller
7b73bcbb8a Fix Changelog generation and update. 2007-06-10 22:00:57 +00:00
Todd C. Miller
8ae409b8f2 Use /proc/self/fd instead of /proc/$$/fd
Move old-style fd closing into closefrom_fallback() and call
that if /proc/self/fd doesn't exist or the F_CLOSEM fcntl() fails
2007-06-09 11:26:43 +00:00
Todd C. Miller
fc38e7c21e o use krb5_verify_user() if available instead of doing it by hand
o use krb5_init_secure_context() if we have it
 o pass an encryption type of 0 to krb5_kt_read_service_key() instead of
   ENCTYPE_DES_CBC_MD5 to let kerberos choose.
2007-06-09 11:24:49 +00:00
Todd C. Miller
f221ba2300 Check TERM and COLORTERM for '%' and '/' characters. From Debian. 2007-06-09 11:20:59 +00:00
Todd C. Miller
4d04baaee8 Fix closefrom() substitution in the Makefile 2007-06-09 11:17:34 +00:00
Todd C. Miller
7323cbb504 Mention alternate sudo pronunciation. 2007-06-09 11:15:10 +00:00
Todd C. Miller
30e57038d4 Remove KRB5_KTNAME from environment. Allow COLORTERM. 2007-06-07 11:52:44 +00:00
Todd C. Miller
8d97321150 If we cannot get a valid service key using the default keytab it
is a fatal error.  Fixes a bug where sudo could be tricked into
allowing access when it should not by a fake KDC.
From Thor Lancelot Simon.
2007-06-07 11:22:22 +00:00
Todd C. Miller
bd221e2eb3 Update long long checks to use AC_CHECK_TYPES and to cache values. 2007-05-12 12:56:46 +00:00
Todd C. Miller
1c824fb367 Use AC_FUNC_FNMATCH instead of a homebrew fnmatch checker. We can't
use AC_REPLACE_FNMATCH since that assumes replacing with GNU fnmatch.
2007-05-12 12:07:11 +00:00
Todd C. Miller
1488331d75 Add closefrom() to LIB_OBJS not SUDO_OBJS if it is missing since we
need it for visudo now too.
2007-05-11 21:05:12 +00:00
Todd C. Miller
0ea35c0d32 Attempt to clarify the bit talking about network numbers w/o netmasks. 2007-04-24 18:44:19 +00:00
Todd C. Miller
af80a3e578 Clarify timestamp dir ownership sentence. 2007-04-24 18:25:14 +00:00
Todd C. Miller
f2433e0368 Linux PAM now defines __LINUX_PAM__, not __LIBPAM_VERSION.
From Dmitry V. Levin.
2007-04-20 16:40:59 +00:00
Todd C. Miller
3f2b6b1460 -i is also one of the mutually exclusive options to list it in the
warning message.  Noted by Chris Pepper.
2007-04-16 16:13:33 +00:00
Todd C. Miller
b679cb930b The sudoers variable is env_editor, not enveditor.
From Jean-Francois Saucier.
2007-04-12 15:18:15 +00:00
Todd C. Miller
666c85dba2 I tracked down the original author so credit him and include his
license info.
2007-03-29 17:30:22 +00:00
Todd C. Miller
7a96eb86e6 Fix typos; from Jason McIntyre. 2007-02-06 18:25:35 +00:00
Todd C. Miller
832f4c3768 Restore signal mask before calling reapchild(). Fixes a possible race
condition that could prevent sudo from properly waiting for the child.
2007-02-06 18:23:45 +00:00
Todd C. Miller
51d61f148f Don't declare pw_free() if we are not going to use it. 2007-01-31 15:02:24 +00:00
Todd C. Miller
bf500a00d6 Add NOEXEC support for AIX 5.3 which supports LDR_PRELOAD and
LDR_PRELOAD64.  The 64-bit version is not currently supported.
Remove zero_env() prototype as it no longer exists.
2007-01-31 15:00:48 +00:00
Todd C. Miller
9d6695ed43 Add "Auto-Submitted: auto-generated" line to sudo mail for rfc 3834. 2006-12-11 18:21:29 +00:00