]> granicus.if.org Git - sudo/log
sudo
17 years agoMention pam-devel and openldap-devel for Linux
Todd C. Miller [Wed, 4 Jul 2007 19:50:56 +0000 (19:50 +0000)]
Mention pam-devel and openldap-devel for Linux

17 years agoor vs. are
Todd C. Miller [Tue, 3 Jul 2007 23:38:15 +0000 (23:38 +0000)]
or vs. are

17 years agofix typo in Solaris project support
Todd C. Miller [Sun, 1 Jul 2007 20:55:14 +0000 (20:55 +0000)]
fix typo in Solaris project support

17 years agoupdate
Todd C. Miller [Sun, 1 Jul 2007 13:40:15 +0000 (13:40 +0000)]
update

17 years agoMake -- on the command line match the manual page.
Todd C. Miller [Sun, 1 Jul 2007 13:07:06 +0000 (13:07 +0000)]
Make -- on the command line match the manual page.
The implied shell case has been simplified as a result.

17 years agoadd simplistic support for sudoRunas; note that if a sudoers entry contains multiple...
Todd C. Miller [Thu, 28 Jun 2007 14:44:05 +0000 (14:44 +0000)]
add simplistic support for sudoRunas; note that if a sudoers entry contains multiple Runas users, all will apply to the sudoRole

17 years agohonor SETENV and NOSETENV tags
Todd C. Miller [Thu, 28 Jun 2007 14:42:43 +0000 (14:42 +0000)]
honor SETENV and NOSETENV tags

17 years agoRedo setting of user_args. We now build up a private copy of argv
Todd C. Miller [Sun, 24 Jun 2007 13:25:01 +0000 (13:25 +0000)]
Redo setting of user_args.  We now build up a private copy of argv
first and then replace the NULs with spaces.

17 years agogetcwd() returns NULL on failure, not 0 on success
Todd C. Miller [Sun, 24 Jun 2007 13:19:29 +0000 (13:19 +0000)]
getcwd() returns NULL on failure, not 0 on success

17 years agoallow chunksiz to reach 1 before erroring out
Todd C. Miller [Sun, 24 Jun 2007 11:39:16 +0000 (11:39 +0000)]
allow chunksiz to reach 1 before erroring out

17 years agoregen
Todd C. Miller [Sun, 24 Jun 2007 00:00:41 +0000 (00:00 +0000)]
regen

17 years agoAdd support for setting environment variables on the command line.
Todd C. Miller [Sat, 23 Jun 2007 23:58:54 +0000 (23:58 +0000)]
Add support for setting environment variables on the command line.
This is only allowed if the setenv sudoers options is enabled or if
the command is prefixed with the SETENV tag.

17 years agoreplace Aaron's email address with the sudo-workers list
Todd C. Miller [Sat, 23 Jun 2007 23:57:29 +0000 (23:57 +0000)]
replace Aaron's email address with the sudo-workers list

17 years agoregen
Todd C. Miller [Sat, 23 Jun 2007 23:55:55 +0000 (23:55 +0000)]
regen

17 years agoBreak schema out into separate files.
Todd C. Miller [Fri, 22 Jun 2007 00:35:19 +0000 (00:35 +0000)]
Break schema out into separate files.

17 years agoBreak schema out into separate files.
Todd C. Miller [Fri, 22 Jun 2007 00:35:19 +0000 (00:35 +0000)]
Break schema out into separate files.

17 years agofree message if set by authenticate()
Todd C. Miller [Thu, 21 Jun 2007 22:28:40 +0000 (22:28 +0000)]
free message if set by authenticate()

17 years agodeal with NULL gr_mem
Todd C. Miller [Thu, 21 Jun 2007 17:04:26 +0000 (17:04 +0000)]
deal with NULL gr_mem

17 years agoregen
Todd C. Miller [Wed, 20 Jun 2007 19:05:04 +0000 (19:05 +0000)]
regen

17 years agoadd template for HAVE_PROJECT_H
Todd C. Miller [Wed, 20 Jun 2007 19:04:30 +0000 (19:04 +0000)]
add template for HAVE_PROJECT_H

17 years agoinclude fcntl.h
Todd C. Miller [Wed, 20 Jun 2007 11:06:48 +0000 (11:06 +0000)]
include fcntl.h

17 years agomention --with-project
Todd C. Miller [Tue, 19 Jun 2007 23:37:35 +0000 (23:37 +0000)]
mention --with-project

17 years agoAdd Solaris 10 "project" support. From Michael Brantley.
Todd C. Miller [Tue, 19 Jun 2007 22:24:51 +0000 (22:24 +0000)]
Add Solaris 10 "project" support.  From Michael Brantley.

17 years agofix typo
Todd C. Miller [Tue, 19 Jun 2007 21:27:14 +0000 (21:27 +0000)]
fix typo

17 years agoregen
Todd C. Miller [Tue, 19 Jun 2007 21:22:16 +0000 (21:22 +0000)]
regen

17 years agoFix preservation of LDFLAGS in the LDAP case.
Todd C. Miller [Tue, 19 Jun 2007 21:21:38 +0000 (21:21 +0000)]
Fix preservation of LDFLAGS in the LDAP case.

17 years agoRemove dependecy on NULL
Todd C. Miller [Tue, 19 Jun 2007 21:00:30 +0000 (21:00 +0000)]
Remove dependecy on NULL

17 years agoregen
Todd C. Miller [Tue, 19 Jun 2007 19:37:45 +0000 (19:37 +0000)]
regen

17 years agoCan't use the regular autoconf fnmatch() check since we need
Todd C. Miller [Tue, 19 Jun 2007 19:37:09 +0000 (19:37 +0000)]
Can't use the regular autoconf fnmatch() check since we need
FNM_CASEFOLD so go back to our custom one.

17 years agoFix preserving of variables in env_keep.
Todd C. Miller [Tue, 19 Jun 2007 16:53:09 +0000 (16:53 +0000)]
Fix preserving of variables in env_keep.

17 years agoadd XAUTHORIZATION
Todd C. Miller [Tue, 19 Jun 2007 11:11:42 +0000 (11:11 +0000)]
add XAUTHORIZATION

17 years agoexpand upon env resetting and mention that it began in 1.6.9 not 1.7.
Todd C. Miller [Tue, 19 Jun 2007 00:41:00 +0000 (00:41 +0000)]
expand upon env resetting and mention that it began in 1.6.9 not 1.7.

17 years agoUpdate descriptions of env_keep and env_check to match current reality.
Todd C. Miller [Tue, 19 Jun 2007 00:33:55 +0000 (00:33 +0000)]
Update descriptions of env_keep and env_check to match current reality.

17 years agoAdd LINGUAS to initial_checkenv_table.
Todd C. Miller [Mon, 18 Jun 2007 21:33:22 +0000 (21:33 +0000)]
Add LINGUAS to initial_checkenv_table.
Add COLORS, HOSTNAME, LS_COLORS, MAIL, PS1, PS2, XAUTHORITY
to intial_keepenv_table.

17 years agoTreat USERNAME environemnt variable like LOGNAME/USER
Todd C. Miller [Mon, 18 Jun 2007 21:23:48 +0000 (21:23 +0000)]
Treat USERNAME environemnt variable like LOGNAME/USER

17 years agoDon't need to populate keepenv table with the contents of the checkenv table.
Todd C. Miller [Mon, 18 Jun 2007 21:21:30 +0000 (21:21 +0000)]
Don't need to populate keepenv table with the contents of the checkenv table.

17 years agoDon't force sudo into the C locale.
Todd C. Miller [Mon, 18 Jun 2007 12:57:21 +0000 (12:57 +0000)]
Don't force sudo into the C locale.

17 years agoMake env_check apply when env_reset it true. Environment variables are
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.

17 years agoRemove an duplicate lock_file() call and add a comment.
Todd C. Miller [Sat, 16 Jun 2007 11:31:56 +0000 (11:31 +0000)]
Remove an duplicate lock_file() call and add a comment.

17 years agoAdd sudo 1.6.9 upgrade note.
Todd C. Miller [Sat, 16 Jun 2007 01:16:38 +0000 (01:16 +0000)]
Add sudo 1.6.9 upgrade note.

17 years agoSolaris will return EINVAL if the buffer used in SIOCGIFCONF is too
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.

17 years agoRedo the long syslog line splitting based on a patch from Eygene Ryabinkin.
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.

17 years agoRedo the long syslog line splitting based on a patch from Eygene Ryabinkin.
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.

17 years agoRedo the long syslog line splitting based on a patch from Eygene Ryabinkin.
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.

17 years agoSince we need to be able to convert timespec to timeval for
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.

17 years agoAdd SUDO_ADD_AUTH macro to deal with adding things to AUTH_OBJS.
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.

17 years agomkstemp.c is BSD code too.
Todd C. Miller [Tue, 12 Jun 2007 17:08:21 +0000 (17:08 +0000)]
mkstemp.c is BSD code too.

17 years agoNo commercial support for now.
Todd C. Miller [Tue, 12 Jun 2007 13:21:40 +0000 (13:21 +0000)]
No commercial support for now.

17 years agocleanenv() is no more.
Todd C. Miller [Mon, 11 Jun 2007 22:27:43 +0000 (22:27 +0000)]
cleanenv() is no more.

17 years agoDisplay branch info in Changelog
Todd C. Miller [Sun, 10 Jun 2007 22:37:15 +0000 (22:37 +0000)]
Display branch info in Changelog

17 years agoInclude config.h early so we have it for TIME_WITH_SYS_TIME
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

17 years agoFix Changelog generation and update.
Todd C. Miller [Sun, 10 Jun 2007 22:00:57 +0000 (22:00 +0000)]
Fix Changelog generation and update.

17 years agoUse /proc/self/fd instead of /proc/$$/fd
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

17 years ago o use krb5_verify_user() if available instead of doing it by hand
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.

17 years agoCheck TERM and COLORTERM for '%' and '/' characters. From Debian.
Todd C. Miller [Sat, 9 Jun 2007 11:20:59 +0000 (11:20 +0000)]
Check TERM and COLORTERM for '%' and '/' characters.  From Debian.

17 years agoFix closefrom() substitution in the Makefile
Todd C. Miller [Sat, 9 Jun 2007 11:17:34 +0000 (11:17 +0000)]
Fix closefrom() substitution in the Makefile

17 years agoMention alternate sudo pronunciation.
Todd C. Miller [Sat, 9 Jun 2007 11:15:10 +0000 (11:15 +0000)]
Mention alternate sudo pronunciation.

17 years agoRemove KRB5_KTNAME from environment. Allow COLORTERM.
Todd C. Miller [Thu, 7 Jun 2007 11:52:44 +0000 (11:52 +0000)]
Remove KRB5_KTNAME from environment.  Allow COLORTERM.

17 years agoIf we cannot get a valid service key using the default keytab it
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.

17 years agoUpdate long long checks to use AC_CHECK_TYPES and to cache values.
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.

17 years agoUse AC_FUNC_FNMATCH instead of a homebrew fnmatch checker. We can't
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.

17 years agoAdd closefrom() to LIB_OBJS not SUDO_OBJS if it is missing since we
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.

17 years agoAttempt to clarify the bit talking about network numbers w/o netmasks.
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.

17 years agoClarify timestamp dir ownership sentence.
Todd C. Miller [Tue, 24 Apr 2007 18:25:14 +0000 (18:25 +0000)]
Clarify timestamp dir ownership sentence.

17 years agoLinux PAM now defines __LINUX_PAM__, not __LIBPAM_VERSION.
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.

17 years ago-i is also one of the mutually exclusive options to list it in the
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.

17 years agoThe sudoers variable is env_editor, not enveditor.
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.

17 years agoI tracked down the original author so credit him and include his
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.

17 years agoFix typos; from Jason McIntyre.
Todd C. Miller [Tue, 6 Feb 2007 18:25:35 +0000 (18:25 +0000)]
Fix typos; from Jason McIntyre.

17 years agoRestore signal mask before calling reapchild(). Fixes a possible race
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.

17 years agoDon't declare pw_free() if we are not going to use it.
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.

17 years agoAdd NOEXEC support for AIX 5.3 which supports LDR_PRELOAD and
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.

18 years agoAdd "Auto-Submitted: auto-generated" line to sudo mail for rfc 3834.
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.

18 years agoIf the user enters ^C at the password prompt, abort instead of
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).

18 years agoAdd fcntl F_CLOSEM support to closefrom(); adapted from a diff by
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.

18 years agopw_free() is only used by sudo_freepwcache() so ifdef it out too.
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.

18 years agoUpdate to latest versions from cvs.savannah.gnu.org
Todd C. Miller [Fri, 4 Aug 2006 15:34:19 +0000 (15:34 +0000)]
Update to latest versions from cvs.savannah.gnu.org

18 years agoMove password/group cache cleaning out of sudo_end{pw,grp}ent() so
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.

18 years agoAdd seteuid() flavor of set_perms() for systems without setreuid()
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.

18 years agosystrace_read() returns ssize_t
Todd C. Miller [Sun, 30 Jul 2006 19:56:11 +0000 (19:56 +0000)]
systrace_read() returns ssize_t

18 years agoFix typo, -lldap vs. -ldap; from Tim Knox.
Todd C. Miller [Sun, 30 Jul 2006 19:53:52 +0000 (19:53 +0000)]
Fix typo, -lldap vs. -ldap; from Tim Knox.

18 years agoFix typo; Matt Ackeret
Todd C. Miller [Fri, 28 Jul 2006 17:12:49 +0000 (17:12 +0000)]
Fix typo; Matt Ackeret

18 years agoPrint sudoers path in -V mode for root.
Todd C. Miller [Mon, 17 Jul 2006 12:25:07 +0000 (12:25 +0000)]
Print sudoers path in -V mode for root.

18 years agoDo a sub tree search instead of a base search (one level in the
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.

19 years agofix typo
Todd C. Miller [Wed, 28 Dec 2005 18:52:45 +0000 (18:52 +0000)]
fix typo

19 years agoConvert GET_OPT and GET_OPTI to use just 2 args.
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.

19 years agoSupport comments that start in the middle of a line
Todd C. Miller [Wed, 23 Nov 2005 23:57:10 +0000 (23:57 +0000)]
Support comments that start in the middle of a line

19 years agoDefine LDAP_DEPRECATED until we start using ldap_get_values_len()
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()

19 years agoSilence gcc -Wsign-compare; djm@openbsd.org
Todd C. Miller [Fri, 18 Nov 2005 14:55:24 +0000 (14:55 +0000)]
Silence gcc -Wsign-compare; djm@openbsd.org

19 years agocleanup() now takes an int as an arg so it can be used as a signal
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.

19 years agoMake a copy of the shell field in the passwd struct for NewArgv to avoid
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.

19 years agoAdd mkstemp() for those poor souls without it.
Todd C. Miller [Thu, 17 Nov 2005 01:36:48 +0000 (01:36 +0000)]
Add mkstemp() for those poor souls without it.

19 years agoAdd 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.

19 years agoAdd 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.

19 years agoAdd PERL5DB to list of environment variables to remove.
Todd C. Miller [Tue, 15 Nov 2005 14:25:03 +0000 (14:25 +0000)]
Add PERL5DB to list of environment variables to remove.

19 years agoInstead of calling the check function twice with a state cookie use
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.

19 years agoAdd more environment variables to remove; from gentoo linux
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)

19 years agoMove sudo_end{gr,pw}ent() until just before the exec since they
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.

19 years agoClose all fd's before executing editor.
Todd C. Miller [Fri, 11 Nov 2005 22:19:53 +0000 (22:19 +0000)]
Close all fd's before executing editor.

19 years agoEnable malloc debugging on OpenBSD when SUDO_DEVEL is set.
Todd C. Miller [Fri, 11 Nov 2005 22:17:59 +0000 (22:17 +0000)]
Enable malloc debugging on OpenBSD when SUDO_DEVEL is set.