]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 18 Jun 2007 12:57:21 +0000 (12:57 +0000)]
Don't force sudo into the C locale.
Todd C. Miller [Mon, 18 Jun 2007 12:56:11 +0000 (12:56 +0000)]
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.
Todd C. Miller [Sat, 16 Jun 2007 11:31:56 +0000 (11:31 +0000)]
Remove an duplicate lock_file() call and add a comment.
Todd C. Miller [Sat, 16 Jun 2007 01:16:38 +0000 (01:16 +0000)]
Add sudo 1.6.9 upgrade note.
Todd C. Miller [Thu, 14 Jun 2007 16:23:57 +0000 (16:23 +0000)]
Solaris will return EINVAL if the buffer used in SIOCGIFCONF is too
small. From Klaus Wagner.
Todd C. Miller [Thu, 14 Jun 2007 16:06:25 +0000 (16:06 +0000)]
Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
Include memrchr() for systems without it.
Todd C. Miller [Thu, 14 Jun 2007 16:03:53 +0000 (16:03 +0000)]
Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
Include memrchr() for systems without it.
Todd C. Miller [Thu, 14 Jun 2007 16:03:53 +0000 (16:03 +0000)]
Redo the long syslog line splitting based on a patch from Eygene Ryabinkin.
Include memrchr() for systems without it.
Todd C. Miller [Thu, 14 Jun 2007 11:09:49 +0000 (11:09 +0000)]
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.
Todd C. Miller [Wed, 13 Jun 2007 17:41:44 +0000 (17:41 +0000)]
Add SUDO_ADD_AUTH macro to deal with adding things to AUTH_OBJS.
This deals with exclusive authentication methods in a simple way.
Todd C. Miller [Tue, 12 Jun 2007 17:08:21 +0000 (17:08 +0000)]
mkstemp.c is BSD code too.
Todd C. Miller [Tue, 12 Jun 2007 13:21:40 +0000 (13:21 +0000)]
No commercial support for now.
Todd C. Miller [Mon, 11 Jun 2007 22:27:43 +0000 (22:27 +0000)]
cleanenv() is no more.
Todd C. Miller [Sun, 10 Jun 2007 22:37:15 +0000 (22:37 +0000)]
Display branch info in Changelog
Todd C. Miller [Sun, 10 Jun 2007 22:18:46 +0000 (22:18 +0000)]
Include config.h early so we have it for TIME_WITH_SYS_TIME
Todd C. Miller [Sun, 10 Jun 2007 22:00:57 +0000 (22:00 +0000)]
Fix Changelog generation and update.
Todd C. Miller [Sat, 9 Jun 2007 11:26:43 +0000 (11:26 +0000)]
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
Todd C. Miller [Sat, 9 Jun 2007 11:24:49 +0000 (11:24 +0000)]
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.
Todd C. Miller [Sat, 9 Jun 2007 11:20:59 +0000 (11:20 +0000)]
Check TERM and COLORTERM for '%' and '/' characters. From Debian.
Todd C. Miller [Sat, 9 Jun 2007 11:17:34 +0000 (11:17 +0000)]
Fix closefrom() substitution in the Makefile
Todd C. Miller [Sat, 9 Jun 2007 11:15:10 +0000 (11:15 +0000)]
Mention alternate sudo pronunciation.
Todd C. Miller [Thu, 7 Jun 2007 11:52:44 +0000 (11:52 +0000)]
Remove KRB5_KTNAME from environment. Allow COLORTERM.
Todd C. Miller [Thu, 7 Jun 2007 11:22:22 +0000 (11:22 +0000)]
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.
Todd C. Miller [Sat, 12 May 2007 12:56:46 +0000 (12:56 +0000)]
Update long long checks to use AC_CHECK_TYPES and to cache values.
Todd C. Miller [Sat, 12 May 2007 12:07:11 +0000 (12:07 +0000)]
Use AC_FUNC_FNMATCH instead of a homebrew fnmatch checker. We can't
use AC_REPLACE_FNMATCH since that assumes replacing with GNU fnmatch.
Todd C. Miller [Fri, 11 May 2007 21:05:12 +0000 (21:05 +0000)]
Add closefrom() to LIB_OBJS not SUDO_OBJS if it is missing since we
need it for visudo now too.
Todd C. Miller [Tue, 24 Apr 2007 18:44:19 +0000 (18:44 +0000)]
Attempt to clarify the bit talking about network numbers w/o netmasks.
Todd C. Miller [Tue, 24 Apr 2007 18:25:14 +0000 (18:25 +0000)]
Clarify timestamp dir ownership sentence.
Todd C. Miller [Fri, 20 Apr 2007 16:40:59 +0000 (16:40 +0000)]
Linux PAM now defines __LINUX_PAM__, not __LIBPAM_VERSION.
From Dmitry V. Levin.
Todd C. Miller [Mon, 16 Apr 2007 16:13:33 +0000 (16:13 +0000)]
-i is also one of the mutually exclusive options to list it in the
warning message. Noted by Chris Pepper.
Todd C. Miller [Thu, 12 Apr 2007 15:18:15 +0000 (15:18 +0000)]
The sudoers variable is env_editor, not enveditor.
From Jean-Francois Saucier.
Todd C. Miller [Thu, 29 Mar 2007 17:30:22 +0000 (17:30 +0000)]
I tracked down the original author so credit him and include his
license info.
Todd C. Miller [Tue, 6 Feb 2007 18:25:35 +0000 (18:25 +0000)]
Fix typos; from Jason McIntyre.
Todd C. Miller [Tue, 6 Feb 2007 18:23:45 +0000 (18:23 +0000)]
Restore signal mask before calling reapchild(). Fixes a possible race
condition that could prevent sudo from properly waiting for the child.
Todd C. Miller [Wed, 31 Jan 2007 15:02:24 +0000 (15:02 +0000)]
Don't declare pw_free() if we are not going to use it.
Todd C. Miller [Wed, 31 Jan 2007 15:00:48 +0000 (15:00 +0000)]
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.
Todd C. Miller [Mon, 11 Dec 2006 18:21:29 +0000 (18:21 +0000)]
Add "Auto-Submitted: auto-generated" line to sudo mail for rfc 3834.
Todd C. Miller [Fri, 29 Sep 2006 14:53:42 +0000 (14:53 +0000)]
If the user enters ^C at the password prompt, abort instead of
trying to authenticate with an empty password (which causes an
annoying delay).
Todd C. Miller [Thu, 17 Aug 2006 15:26:54 +0000 (15:26 +0000)]
Add fcntl F_CLOSEM support to closefrom(); adapted from a diff by
Darren Tucker.
Todd C. Miller [Thu, 17 Aug 2006 15:25:07 +0000 (15:25 +0000)]
pw_free() is only used by sudo_freepwcache() so ifdef it out too.
Todd C. Miller [Fri, 4 Aug 2006 15:34:19 +0000 (15:34 +0000)]
Update to latest versions from cvs.savannah.gnu.org
Todd C. Miller [Mon, 31 Jul 2006 17:51:44 +0000 (17:51 +0000)]
Move password/group cache cleaning out of sudo_end{pw,grp}ent() so
we can close the passwd/group files early.
Todd C. Miller [Mon, 31 Jul 2006 17:50:06 +0000 (17:50 +0000)]
Add seteuid() flavor of set_perms() for systems without setreuid()
or setresuid() that have a working seteuid(). Tested on Darwin.
Todd C. Miller [Sun, 30 Jul 2006 19:56:11 +0000 (19:56 +0000)]
systrace_read() returns ssize_t
Todd C. Miller [Sun, 30 Jul 2006 19:53:52 +0000 (19:53 +0000)]
Fix typo, -lldap vs. -ldap; from Tim Knox.
Todd C. Miller [Fri, 28 Jul 2006 17:12:49 +0000 (17:12 +0000)]
Fix typo; Matt Ackeret
Todd C. Miller [Mon, 17 Jul 2006 12:25:07 +0000 (12:25 +0000)]
Print sudoers path in -V mode for root.
Todd C. Miller [Thu, 15 Jun 2006 18:44:42 +0000 (18:44 +0000)]
Do a sub tree search instead of a base search (one level in the
tree only) for sudo right objects. This allows system administrators
to categorize the rights in a tree to make them easier to manage.
Todd C. Miller [Wed, 28 Dec 2005 18:52:45 +0000 (18:52 +0000)]
fix typo
Todd C. Miller [Sun, 4 Dec 2005 17:16:36 +0000 (17:16 +0000)]
Convert GET_OPT and GET_OPTI to use just 2 args.
Add timelimit and bind_timelimit support; adapted from gentoo.
Todd C. Miller [Wed, 23 Nov 2005 23:57:10 +0000 (23:57 +0000)]
Support comments that start in the middle of a line
Todd C. Miller [Wed, 23 Nov 2005 23:56:52 +0000 (23:56 +0000)]
Define LDAP_DEPRECATED until we start using ldap_get_values_len()
Todd C. Miller [Fri, 18 Nov 2005 14:55:24 +0000 (14:55 +0000)]
Silence gcc -Wsign-compare; djm@openbsd.org
Todd C. Miller [Fri, 18 Nov 2005 01:39:59 +0000 (01:39 +0000)]
cleanup() now takes an int as an arg so it can be used as a signal
handler too.
Todd C. Miller [Fri, 18 Nov 2005 01:38:32 +0000 (01:38 +0000)]
Make a copy of the shell field in the passwd struct for NewArgv to avoid
a use after free situation after sudo_endpwent() is called.
Todd C. Miller [Thu, 17 Nov 2005 01:36:48 +0000 (01:36 +0000)]
Add mkstemp() for those poor souls without it.
Todd C. Miller [Thu, 17 Nov 2005 01:36:47 +0000 (01:36 +0000)]
Add mkstemp() for those poor souls without it.
Todd C. Miller [Thu, 17 Nov 2005 01:36:47 +0000 (01:36 +0000)]
Add mkstemp() for those poor souls without it.
Todd C. Miller [Tue, 15 Nov 2005 14:25:03 +0000 (14:25 +0000)]
Add PERL5DB to list of environment variables to remove.
Todd C. Miller [Sun, 13 Nov 2005 20:49:35 +0000 (20:49 +0000)]
Instead of calling the check function twice with a state cookie use
separate check/log functions.
Check more ioctl() calls for failure.
systrace_{read,write} now return the number of bytes read/written
or -1 on error.
Todd C. Miller [Sun, 13 Nov 2005 19:51:43 +0000 (19:51 +0000)]
Add more environment variables to remove; from gentoo linux
Add some comments about what bad env variables go to what (more to do)
Todd C. Miller [Fri, 11 Nov 2005 22:23:08 +0000 (22:23 +0000)]
Move sudo_end{gr,pw}ent() until just before the exec since they
free up our cached copy of the passwd structs, including sudo_user
and sudo_runas. Fixes a use-after-free bug.
Todd C. Miller [Fri, 11 Nov 2005 22:19:53 +0000 (22:19 +0000)]
Close all fd's before executing editor.
Todd C. Miller [Fri, 11 Nov 2005 22:17:59 +0000 (22:17 +0000)]
Enable malloc debugging on OpenBSD when SUDO_DEVEL is set.
Todd C. Miller [Fri, 11 Nov 2005 16:22:58 +0000 (16:22 +0000)]
Fix fd leak when lecture file option is enabled. From Jerry Brown
Todd C. Miller [Mon, 7 Nov 2005 16:02:22 +0000 (16:02 +0000)]
Add PERLLIB, PERL5LIB and PERL5OPT to the default list of environment
variables to remove. From Charles Morris
Todd C. Miller [Tue, 1 Nov 2005 18:24:47 +0000 (18:24 +0000)]
add JAVA_TOOL_OPTIONS to initial_badenv_table for java 5
Todd C. Miller [Fri, 28 Oct 2005 00:35:33 +0000 (00:35 +0000)]
add PS4 and SHELLOPTS to initial_badenv_table for bash
Todd C. Miller [Mon, 15 Aug 2005 00:32:08 +0000 (00:32 +0000)]
Fix typo; Toby Peterson
Todd C. Miller [Tue, 2 Aug 2005 13:57:55 +0000 (13:57 +0000)]
Make return buffers static so they don't get clobbered
Todd C. Miller [Thu, 28 Jul 2005 01:14:14 +0000 (01:14 +0000)]
Fix securid5 authentication, was not checking for ACM_OK. Also add
default cases for the two switch()es. Problem noted by ccon at worldbank
Todd C. Miller [Mon, 27 Jun 2005 00:10:06 +0000 (00:10 +0000)]
Remove ncat() in favor of just counting bytes and pre-allocating what is
needed.
Todd C. Miller [Sun, 26 Jun 2005 23:44:30 +0000 (23:44 +0000)]
Fix up some comments
Add missing fclose() for the rootbinddn case
Todd C. Miller [Sun, 26 Jun 2005 23:38:44 +0000 (23:38 +0000)]
align struct ldap_config
Todd C. Miller [Sun, 26 Jun 2005 23:37:54 +0000 (23:37 +0000)]
use LINE_MAX for max conf file line size
Todd C. Miller [Sun, 26 Jun 2005 22:36:51 +0000 (22:36 +0000)]
add _PATH_LDAP_SECRET
Todd C. Miller [Sun, 26 Jun 2005 22:36:09 +0000 (22:36 +0000)]
Mention rootbinddn
Give example ou=SUDOers container
Todd C. Miller [Sat, 25 Jun 2005 22:03:10 +0000 (22:03 +0000)]
Support rootbinddn in ldap.conf
Todd C. Miller [Sat, 25 Jun 2005 21:46:16 +0000 (21:46 +0000)]
Preserve DISPLAY environment variable by default.
Todd C. Miller [Sat, 25 Jun 2005 20:39:56 +0000 (20:39 +0000)]
set need_lib_prefix=no for all cases; this is safe for LD_PRELOAD
Todd C. Miller [Sat, 25 Jun 2005 20:15:55 +0000 (20:15 +0000)]
set need_version=no for all cases; this is safe for LD_PRELOAD
Todd C. Miller [Sat, 25 Jun 2005 18:45:09 +0000 (18:45 +0000)]
typo
Todd C. Miller [Sat, 25 Jun 2005 18:33:01 +0000 (18:33 +0000)]
Add dragonfly
Todd C. Miller [Sat, 25 Jun 2005 18:29:17 +0000 (18:29 +0000)]
Fix call to pam_end() when pam_open_session() fails.
Todd C. Miller [Sat, 25 Jun 2005 18:21:09 +0000 (18:21 +0000)]
regen
Todd C. Miller [Sat, 25 Jun 2005 18:20:43 +0000 (18:20 +0000)]
rebuild acsite.m4 from libtool 1.9f libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4
Todd C. Miller [Sat, 25 Jun 2005 18:08:10 +0000 (18:08 +0000)]
merge in local changes:
config.guess:
o better openbsd support
config.sub:
o hiuxmpp support
ltmain.sh
o remove requirement that libs must begin with "lib"
o don't print a bunch of crap about library installs
o don't run ldconfig
Todd C. Miller [Sat, 25 Jun 2005 18:05:44 +0000 (18:05 +0000)]
libtool 1.9f
Todd C. Miller [Sat, 25 Jun 2005 18:04:30 +0000 (18:04 +0000)]
Update with autoupdate and make minor changes for libtool 1.9f
Todd C. Miller [Thu, 23 Jun 2005 03:19:00 +0000 (03:19 +0000)]
don't call sudo_ldap_display_cmnd if ldap not setup
Todd C. Miller [Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)]
Move declatation of struct timespec to its own include files for
systems without it since it needs time_t defined.
Todd C. Miller [Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)]
Move declatation of struct timespec to its own include files for
systems without it since it needs time_t defined.
Todd C. Miller [Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)]
Move declatation of struct timespec to its own include files for
systems without it since it needs time_t defined.
Todd C. Miller [Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)]
Move declatation of struct timespec to its own include files for
systems without it since it needs time_t defined.
Todd C. Miller [Thu, 23 Jun 2005 03:04:35 +0000 (03:04 +0000)]
Move declatation of struct timespec to its own include files for
systems without it since it needs time_t defined.
Todd C. Miller [Thu, 23 Jun 2005 02:57:18 +0000 (02:57 +0000)]
Don't set safe_cmnd for the "sudo ALL" case.
Todd C. Miller [Fri, 27 May 2005 05:59:02 +0000 (05:59 +0000)]
Call pam_open_session() and pam_close_session() to give pam_limits a
chance to run. Idea from Karel Zak.
Todd C. Miller [Sun, 24 Apr 2005 23:24:58 +0000 (23:24 +0000)]
Add explicit cast from mode_t -> u_int in printf to silence warnings on Solaris
Todd C. Miller [Sun, 24 Apr 2005 23:22:19 +0000 (23:22 +0000)]
include grp.h to silence a warning on Solaris
Todd C. Miller [Sat, 23 Apr 2005 19:10:16 +0000 (19:10 +0000)]
Fix printing of += and -= defaults.