]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 9 Jul 2007 23:25:41 +0000 (23:25 +0000)]
Better explanation of environment handling in the sudo man page.
Todd C. Miller [Mon, 9 Jul 2007 19:13:38 +0000 (19:13 +0000)]
Defer setting user-specified env vars until after authentication.
Todd C. Miller [Mon, 9 Jul 2007 17:25:45 +0000 (17:25 +0000)]
honor def_default_path for PATH set on the command line
Todd C. Miller [Mon, 9 Jul 2007 17:22:55 +0000 (17:22 +0000)]
Allow user to set environment variables on the command line as long
as they are allowed by env_keep and env_check. Ie: apply the same
restrictions as normal environment variables.
TODO: deal with secure_path
Todd C. Miller [Sun, 8 Jul 2007 18:44:28 +0000 (18:44 +0000)]
Call rebuild_env() in call cases.
Pass original envp to sudo_edit().
Don't allow -E or env var setting in sudoedit mode.
More accurate usage() when called as sudoedit.
Todd C. Miller [Sun, 8 Jul 2007 18:41:17 +0000 (18:41 +0000)]
warn -> warning
Todd C. Miller [Sun, 8 Jul 2007 18:11:33 +0000 (18:11 +0000)]
add -c option to sudoedit synopsis
Todd C. Miller [Sun, 8 Jul 2007 14:27:40 +0000 (14:27 +0000)]
udpate to reality
Todd C. Miller [Sun, 8 Jul 2007 13:43:07 +0000 (13:43 +0000)]
Use ALLOW/DENY instead of TRUE/FALSE when dealing with the return
value from {user,host,runas,cmnd}_matches().
Rename *matches variables -> *match.
Purely cosmetic.
Todd C. Miller [Sun, 8 Jul 2007 13:30:07 +0000 (13:30 +0000)]
Move setting of FLAG_NO_CHECK into the if(pwflag) block.
No change in behavior.
Todd C. Miller [Sun, 8 Jul 2007 13:17:59 +0000 (13:17 +0000)]
add SETENV tag
Todd C. Miller [Fri, 6 Jul 2007 19:51:03 +0000 (19:51 +0000)]
Make pwcheck local to the pwflag block.
Use pwcheck even if user didn't match since Defaults options may still apply.
Todd C. Miller [Fri, 6 Jul 2007 18:51:43 +0000 (18:51 +0000)]
Do not update timestamp if user not validated by sudoers.
Todd C. Miller [Fri, 6 Jul 2007 14:14:12 +0000 (14:14 +0000)]
for PERM_RUNAS, set the egid to the runas user's gid and restore to the user's original in PERM_ROOT
Todd C. Miller [Fri, 6 Jul 2007 14:04:40 +0000 (14:04 +0000)]
PERM_FULL_ROOT is now no different than PERM_ROOT so remove PERM_FULL_ROOT
Todd C. Miller [Fri, 6 Jul 2007 13:49:41 +0000 (13:49 +0000)]
don't check timestamp mtime if we are just going to remove it
Todd C. Miller [Fri, 6 Jul 2007 13:33:47 +0000 (13:33 +0000)]
Move sudoers defaults parameters into their own section.
Todd C. Miller [Fri, 6 Jul 2007 00:21:16 +0000 (00:21 +0000)]
Reduce a level of indent by a few placed continue statements.
Todd C. Miller [Fri, 6 Jul 2007 00:20:51 +0000 (00:20 +0000)]
Make matching but negated commands/hosts/runas entries override a
previous match as expected. Also reduce some levels of indent by
a few placed continue statements.
Todd C. Miller [Thu, 5 Jul 2007 20:34:00 +0000 (20:34 +0000)]
Print default runas in "sudo -l" if sudoers don't specify one.
Todd C. Miller [Thu, 5 Jul 2007 19:46:23 +0000 (19:46 +0000)]
Less hacky way of testing whether the domain was set.
Todd C. Miller [Wed, 4 Jul 2007 19:50:56 +0000 (19:50 +0000)]
Mention pam-devel and openldap-devel for Linux
Todd C. Miller [Tue, 3 Jul 2007 23:38:15 +0000 (23:38 +0000)]
or vs. are
Todd C. Miller [Sun, 1 Jul 2007 20:55:14 +0000 (20:55 +0000)]
fix typo in Solaris project support
Todd C. Miller [Sun, 1 Jul 2007 13:40:15 +0000 (13:40 +0000)]
update
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.
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
Todd C. Miller [Thu, 28 Jun 2007 14:42:43 +0000 (14:42 +0000)]
honor SETENV and NOSETENV tags
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.
Todd C. Miller [Sun, 24 Jun 2007 13:19:29 +0000 (13:19 +0000)]
getcwd() returns NULL on failure, not 0 on success
Todd C. Miller [Sun, 24 Jun 2007 11:39:16 +0000 (11:39 +0000)]
allow chunksiz to reach 1 before erroring out
Todd C. Miller [Sun, 24 Jun 2007 00:00:41 +0000 (00:00 +0000)]
regen
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.
Todd C. Miller [Sat, 23 Jun 2007 23:57:29 +0000 (23:57 +0000)]
replace Aaron's email address with the sudo-workers list
Todd C. Miller [Sat, 23 Jun 2007 23:55:55 +0000 (23:55 +0000)]
regen
Todd C. Miller [Fri, 22 Jun 2007 00:35:19 +0000 (00:35 +0000)]
Break 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.
Todd C. Miller [Thu, 21 Jun 2007 22:28:40 +0000 (22:28 +0000)]
free message if set by authenticate()
Todd C. Miller [Thu, 21 Jun 2007 17:04:26 +0000 (17:04 +0000)]
deal with NULL gr_mem
Todd C. Miller [Wed, 20 Jun 2007 19:05:04 +0000 (19:05 +0000)]
regen
Todd C. Miller [Wed, 20 Jun 2007 19:04:30 +0000 (19:04 +0000)]
add template for HAVE_PROJECT_H
Todd C. Miller [Wed, 20 Jun 2007 11:06:48 +0000 (11:06 +0000)]
include fcntl.h
Todd C. Miller [Tue, 19 Jun 2007 23:37:35 +0000 (23:37 +0000)]
mention --with-project
Todd C. Miller [Tue, 19 Jun 2007 22:24:51 +0000 (22:24 +0000)]
Add Solaris 10 "project" support. From Michael Brantley.
Todd C. Miller [Tue, 19 Jun 2007 21:27:14 +0000 (21:27 +0000)]
fix typo
Todd C. Miller [Tue, 19 Jun 2007 21:22:16 +0000 (21:22 +0000)]
regen
Todd C. Miller [Tue, 19 Jun 2007 21:21:38 +0000 (21:21 +0000)]
Fix preservation of LDFLAGS in the LDAP case.
Todd C. Miller [Tue, 19 Jun 2007 21:00:30 +0000 (21:00 +0000)]
Remove dependecy on NULL
Todd C. Miller [Tue, 19 Jun 2007 19:37:45 +0000 (19:37 +0000)]
regen
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.
Todd C. Miller [Tue, 19 Jun 2007 16:53:09 +0000 (16:53 +0000)]
Fix preserving of variables in env_keep.
Todd C. Miller [Tue, 19 Jun 2007 11:11:42 +0000 (11:11 +0000)]
add XAUTHORIZATION
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.
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.
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.
Todd C. Miller [Mon, 18 Jun 2007 21:23:48 +0000 (21:23 +0000)]
Treat USERNAME environemnt variable like LOGNAME/USER
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.
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.