]> granicus.if.org Git - sudo/log
sudo
23 years agoHP-UX 9.x has RLIMIT_* but no RLIM_INFINITY. If there is no
Todd C. Miller [Fri, 25 Jan 2002 18:38:22 +0000 (18:38 +0000)]
HP-UX 9.x has RLIMIT_* but no RLIM_INFINITY.  If there is no
RLIM_INFINITY, just pretend it is -1.  This works because we only
check for RLIM_INFINITY and do not set anything to that value.

23 years agoZero and free allocated memory when there is a conversation error.
Todd C. Miller [Tue, 22 Jan 2002 16:43:23 +0000 (16:43 +0000)]
Zero and free allocated memory when there is a conversation error.

23 years agoUse sigaction() not signal()
Todd C. Miller [Tue, 22 Jan 2002 03:37:55 +0000 (03:37 +0000)]
Use sigaction() not signal()

23 years agoMention that some linux kernels have broken POSIX saved ID support
Todd C. Miller [Tue, 22 Jan 2002 03:26:50 +0000 (03:26 +0000)]
Mention that some linux kernels have broken POSIX saved ID support

23 years agocheckpoint for 1.6.5p2
Todd C. Miller [Tue, 22 Jan 2002 02:03:25 +0000 (02:03 +0000)]
checkpoint for 1.6.5p2

23 years agoregen
Todd C. Miller [Tue, 22 Jan 2002 02:01:15 +0000 (02:01 +0000)]
regen

23 years agoAdd --disable-setreuid flag
Todd C. Miller [Tue, 22 Jan 2002 02:01:09 +0000 (02:01 +0000)]
Add --disable-setreuid flag

23 years agoDocument new --disable-setreuid option and change description for
Todd C. Miller [Tue, 22 Jan 2002 02:00:56 +0000 (02:00 +0000)]
Document new --disable-setreuid option and change description for
--disable-saved-ids to match new error message.

23 years agofatal() now takes an argument that determines whether or not to call
Todd C. Miller [Tue, 22 Jan 2002 02:00:25 +0000 (02:00 +0000)]
fatal() now takes an argument that determines whether or not to call
perror().

23 years agoUpdate for new error messages from set_perms()
Todd C. Miller [Tue, 22 Jan 2002 01:58:42 +0000 (01:58 +0000)]
Update for new error messages from set_perms()

23 years agoUpdate for new error messages from set_perms()
Todd C. Miller [Tue, 22 Jan 2002 01:58:42 +0000 (01:58 +0000)]
Update for new error messages from set_perms()

23 years agoMake this compile w/o warnings
Todd C. Miller [Mon, 21 Jan 2002 22:46:02 +0000 (22:46 +0000)]
Make this compile w/o warnings

23 years agoMention that we can't use pam_acct_mgmt()
Todd C. Miller [Mon, 21 Jan 2002 22:36:33 +0000 (22:36 +0000)]
Mention that we can't use pam_acct_mgmt()

23 years agoThe user's password was not zeroed after use when AIX authentication,
Todd C. Miller [Mon, 21 Jan 2002 22:25:14 +0000 (22:25 +0000)]
The user's password was not zeroed after use when AIX authentication,
BSD authentication, FWTK or PAM was in use.

23 years agoAvoid giving PAM a NULL password response, use the empty string instead.
Todd C. Miller [Sun, 20 Jan 2002 19:21:33 +0000 (19:21 +0000)]
Avoid giving PAM a NULL password response, use the empty string instead.
This avoids a log warning when the user hits ^C at the password prompt
when PAM is in use.

23 years agoDon't check the return value of pam_setcred(). In Linux-PAM 0.75
Todd C. Miller [Sun, 20 Jan 2002 00:46:44 +0000 (00:46 +0000)]
Don't check the return value of pam_setcred().  In Linux-PAM 0.75
pam_setcred() returns the last saved return code, not the return
code for the setcred module.  Because we haven't called pam_authenticate(),
this is not set and so pam_setcred() returns PAM_PERM_DENIED.

23 years agoDon't need a '/' between $(DESTDIR) and a directory.
Todd C. Miller [Sun, 20 Jan 2002 00:43:16 +0000 (00:43 +0000)]
Don't need a '/' between $(DESTDIR) and a directory.

23 years agoDon't need a '/' between $(DESTDIR) and a directory.
Todd C. Miller [Sun, 20 Jan 2002 00:43:16 +0000 (00:43 +0000)]
Don't need a '/' between $(DESTDIR) and a directory.

23 years agoregen
Todd C. Miller [Fri, 18 Jan 2002 19:18:57 +0000 (19:18 +0000)]
regen

23 years agoo BSDi also has a bogus setreuid()
Todd C. Miller [Fri, 18 Jan 2002 19:18:39 +0000 (19:18 +0000)]
o BSDi also has a bogus setreuid()
o Old FreeBSD has a bogus setreuid()
o new NetBSD has a real setreuid()
o add check for freeifaddrs() if getifaddrs() exists.

23 years agoOlder BSDi releases lack freeifaddrs() so add a test for that and if
Todd C. Miller [Fri, 18 Jan 2002 19:17:07 +0000 (19:17 +0000)]
Older BSDi releases lack freeifaddrs() so add a test for that and if
it is not present just use free().

23 years agoCheckpoint for 1.6.5p1
Todd C. Miller [Thu, 17 Jan 2002 16:30:53 +0000 (16:30 +0000)]
Checkpoint for 1.6.5p1

23 years agoReturn AUTH_FAILURE in passwd_init() if skeyaccess() denies access
Todd C. Miller [Thu, 17 Jan 2002 15:56:15 +0000 (15:56 +0000)]
Return AUTH_FAILURE in passwd_init() if skeyaccess() denies access
to normal passwords, not AUTH_FATAL (which just causes an exit).

23 years agoDon't use memory after it has been freed.
Todd C. Miller [Thu, 17 Jan 2002 15:35:54 +0000 (15:35 +0000)]
Don't use memory after it has been freed.

23 years agoskeyaccess() wants a struct passwd * not a char *; Patch from Phillip E. Lobbes SUDO_1_6_5
Todd C. Miller [Thu, 17 Jan 2002 05:24:28 +0000 (05:24 +0000)]
skeyaccess() wants a struct passwd * not a char *; Patch from Phillip E. Lobbes

23 years ago++version
Todd C. Miller [Thu, 17 Jan 2002 01:00:53 +0000 (01:00 +0000)]
++version

23 years agocheckpoint for sudo 1.6.5
Todd C. Miller [Thu, 17 Jan 2002 00:53:58 +0000 (00:53 +0000)]
checkpoint for sudo 1.6.5

23 years agoregen
Todd C. Miller [Wed, 16 Jan 2002 23:37:43 +0000 (23:37 +0000)]
regen

23 years agoversion 1.6.5
Todd C. Miller [Wed, 16 Jan 2002 23:37:34 +0000 (23:37 +0000)]
version 1.6.5

23 years agosudo version 1.6.5
Todd C. Miller [Wed, 16 Jan 2002 23:37:01 +0000 (23:37 +0000)]
sudo version 1.6.5

23 years agoo when invoking the mailer as root use a hard-coded environment that
Todd C. Miller [Wed, 16 Jan 2002 21:28:25 +0000 (21:28 +0000)]
o when invoking the mailer as root use a hard-coded environment that
  doesn't include any info from the user's environment.  Basically
  paranoia.

o Add support for the NO_ROOT_MAILER compile-time option and run the
  mailer as the user and not root if NO_ROOT_MAILER is defined.

23 years agoBring back PERM_FULL_USER
Todd C. Miller [Wed, 16 Jan 2002 21:27:09 +0000 (21:27 +0000)]
Bring back PERM_FULL_USER

23 years agoregen
Todd C. Miller [Wed, 16 Jan 2002 21:26:47 +0000 (21:26 +0000)]
regen

23 years agoversion 1.6.5
Todd C. Miller [Wed, 16 Jan 2002 21:26:27 +0000 (21:26 +0000)]
version 1.6.5

23 years agoAdd --disable-root-mailer option to run the mailer as the user and not root.
Todd C. Miller [Wed, 16 Jan 2002 21:26:13 +0000 (21:26 +0000)]
Add --disable-root-mailer option to run the mailer as the user and not root.

23 years agocheckpoint for 1.6.4p2
Todd C. Miller [Wed, 16 Jan 2002 17:44:11 +0000 (17:44 +0000)]
checkpoint for 1.6.4p2

23 years agoMention the "seteuid(0): Operation not permitted" problem here too
Todd C. Miller [Wed, 16 Jan 2002 00:22:21 +0000 (00:22 +0000)]
Mention the "seteuid(0): Operation not permitted" problem here too
just for good measure.

23 years agoThe SHELL environment variable was preserved from the user's
Todd C. Miller [Tue, 15 Jan 2002 23:43:59 +0000 (23:43 +0000)]
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.

23 years agoregen
Todd C. Miller [Tue, 15 Jan 2002 22:47:38 +0000 (22:47 +0000)]
regen

23 years agoAdd a configure option to turn off use of POSIX saved IDs
Todd C. Miller [Tue, 15 Jan 2002 22:47:29 +0000 (22:47 +0000)]
Add a configure option to turn off use of POSIX saved IDs

23 years agoregen
Todd C. Miller [Tue, 15 Jan 2002 20:48:40 +0000 (20:48 +0000)]
regen

23 years agoadd --with-efence option
Todd C. Miller [Tue, 15 Jan 2002 20:48:34 +0000 (20:48 +0000)]
add --with-efence option

23 years agoOnly OR in MODE_RESET_HOME if MODE_RUN is set.
Todd C. Miller [Tue, 15 Jan 2002 20:39:59 +0000 (20:39 +0000)]
Only OR in MODE_RESET_HOME if MODE_RUN is set.
Fixes a problem where "sudo -l" would not work if always_set_home was set.

23 years agoregen
Todd C. Miller [Tue, 15 Jan 2002 18:16:46 +0000 (18:16 +0000)]
regen

23 years agoQuoted commas were not being treated correctly in command line arguments.
Todd C. Miller [Tue, 15 Jan 2002 18:16:31 +0000 (18:16 +0000)]
Quoted commas were not being treated correctly in command line arguments.

23 years agoo Move the call to rebuild_env() until after MODE_RESET_HOME is set.
Todd C. Miller [Tue, 15 Jan 2002 01:53:02 +0000 (01:53 +0000)]
o Move the call to rebuild_env() until after MODE_RESET_HOME is set.
  Otherwise, the set_home option has no effect.

o Fix use of freed memory when the "fqdn" flag is set.  This was
  introduced by the fix for the "segv when gethostbynam() fails" bug.
  Also, we no longer call set_fqdn() if the "fqdn" flag is not set so
  there is no need to check the "fqdn" flag in set_fqdn() itself.

23 years agoAdd 'continue' statements to optimize the switch statement. From Solar.
Todd C. Miller [Tue, 15 Jan 2002 01:45:40 +0000 (01:45 +0000)]
Add 'continue' statements to optimize the switch statement.  From Solar.

23 years agoRegen from new sudoers.pod SUDO_1_6_4
Todd C. Miller [Sun, 13 Jan 2002 18:42:15 +0000 (18:42 +0000)]
Regen from new sudoers.pod

23 years agoAdd caveat about stay_setuid flag
Todd C. Miller [Sun, 13 Jan 2002 18:36:44 +0000 (18:36 +0000)]
Add caveat about stay_setuid flag

23 years agoIf set_perms == set_perms_posix and the stay_setuid flag is not
Todd C. Miller [Sun, 13 Jan 2002 18:29:23 +0000 (18:29 +0000)]
If set_perms == set_perms_posix and the stay_setuid flag is not
set, set all uids to 0 and use set_perms_fallback().

23 years agoRemove PERM_FULL_USER (which is no longer used) and add PERM_FULL_ROOT
Todd C. Miller [Sun, 13 Jan 2002 18:28:09 +0000 (18:28 +0000)]
Remove PERM_FULL_USER (which is no longer used) and add PERM_FULL_ROOT
(used when exec'ing the mailer).

23 years agoUse set_perms(PERM_FULL_ROOT, 0) before exec'ing the mailer since we never
Todd C. Miller [Sun, 13 Jan 2002 18:27:25 +0000 (18:27 +0000)]
Use set_perms(PERM_FULL_ROOT, 0) before exec'ing the mailer since we never
want to run the mailer setuid.

23 years agoUse sudo.ws instead of courtesan.com in URLs
Todd C. Miller [Sat, 12 Jan 2002 22:55:01 +0000 (22:55 +0000)]
Use sudo.ws instead of courtesan.com in URLs

23 years agoFix mansect substitution
Todd C. Miller [Sat, 12 Jan 2002 19:00:15 +0000 (19:00 +0000)]
Fix mansect substitution

23 years agoSubstitute man sections in Makefile.binary
Todd C. Miller [Sat, 12 Jan 2002 18:15:53 +0000 (18:15 +0000)]
Substitute man sections in Makefile.binary

23 years agoSync install targets with Makefile.in and substitute in man sections.
Todd C. Miller [Sat, 12 Jan 2002 18:15:34 +0000 (18:15 +0000)]
Sync install targets with Makefile.in and substitute in man sections.

23 years agoversion is 1.6.4
Todd C. Miller [Sat, 12 Jan 2002 18:09:55 +0000 (18:09 +0000)]
version is 1.6.4

23 years agoRepair bindist target
Todd C. Miller [Sat, 12 Jan 2002 17:59:01 +0000 (17:59 +0000)]
Repair bindist target

23 years agosync for 1.6.4
Todd C. Miller [Sat, 12 Jan 2002 16:43:14 +0000 (16:43 +0000)]
sync for 1.6.4

23 years agoFix case where neither whoami nor id are found
Todd C. Miller [Thu, 10 Jan 2002 18:00:58 +0000 (18:00 +0000)]
Fix case where neither whoami nor id are found

23 years agoIf neither whoami nor id exists, just assume we are root.
Todd C. Miller [Wed, 9 Jan 2002 17:35:14 +0000 (17:35 +0000)]
If neither whoami nor id exists, just assume we are root.

23 years agoAdd explicit cast to (VOID *) on malloc/realloc. Seems to be needed
Todd C. Miller [Wed, 9 Jan 2002 16:56:04 +0000 (16:56 +0000)]
Add explicit cast to (VOID *) on malloc/realloc.  Seems to be needed
on AIX which for some reason isn't pulling in the malloc prototype.

23 years ago(c) 2002
Todd C. Miller [Tue, 8 Jan 2002 15:00:18 +0000 (15:00 +0000)]
(c) 2002

23 years agocheckpoint
Todd C. Miller [Tue, 8 Jan 2002 14:21:14 +0000 (14:21 +0000)]
checkpoint

23 years agoDefer assigning new environment until right before the exec.
Todd C. Miller [Tue, 8 Jan 2002 14:20:57 +0000 (14:20 +0000)]
Defer assigning new environment until right before the exec.

23 years agokill extra blank line
Todd C. Miller [Tue, 8 Jan 2002 14:08:23 +0000 (14:08 +0000)]
kill extra blank line

23 years agoregen
Todd C. Miller [Mon, 7 Jan 2002 18:59:59 +0000 (18:59 +0000)]
regen

23 years agoUse -O not -O2 for m88k-motorola-sysv* since motorola gcc-derived
Todd C. Miller [Mon, 7 Jan 2002 18:59:47 +0000 (18:59 +0000)]
Use -O not -O2 for m88k-motorola-sysv* since motorola gcc-derived
compiler doesn't recognise -O2.

23 years agoClarify origins of Root Group sudo a bit based on info from billp@rootgroup.com
Todd C. Miller [Mon, 7 Jan 2002 04:02:04 +0000 (04:02 +0000)]
Clarify origins of Root Group sudo a bit based on info from billp@rootgroup.com

23 years ago2002
Todd C. Miller [Thu, 3 Jan 2002 03:41:25 +0000 (03:41 +0000)]
2002

23 years agocheckpoint for 1.6.4rc1
Todd C. Miller [Thu, 3 Jan 2002 03:26:24 +0000 (03:26 +0000)]
checkpoint for 1.6.4rc1

23 years agonow generated via autoheader
Todd C. Miller [Wed, 2 Jan 2002 22:40:14 +0000 (22:40 +0000)]
now generated via autoheader

23 years agoregen
Todd C. Miller [Wed, 2 Jan 2002 22:40:04 +0000 (22:40 +0000)]
regen

23 years agoMove in some stuff that was previously in config.h.
Todd C. Miller [Wed, 2 Jan 2002 22:37:19 +0000 (22:37 +0000)]
Move in some stuff that was previously in config.h.

23 years agoAdd info for autoheader.
Todd C. Miller [Wed, 2 Jan 2002 22:36:50 +0000 (22:36 +0000)]
Add info for autoheader.

23 years ago o Add DESTDIR support
Todd C. Miller [Tue, 1 Jan 2002 21:53:12 +0000 (21:53 +0000)]
 o Add DESTDIR support
 o Use -M, -O, and -G instead of -m, -o, and -g to facilitate non-root installs

23 years agoAdd -M option (like -m but only for root)
Todd C. Miller [Tue, 1 Jan 2002 21:48:26 +0000 (21:48 +0000)]
Add -M option (like -m but only for root)
If we can't find "whoami", use "id" w/ some sed.

23 years agoregen
Todd C. Miller [Tue, 1 Jan 2002 19:01:21 +0000 (19:01 +0000)]
regen

23 years agoallow user to always override mansectsu and mansectform
Todd C. Miller [Tue, 1 Jan 2002 19:00:41 +0000 (19:00 +0000)]
allow user to always override mansectsu and mansectform

23 years agoupdate from autoconf 2.52
Todd C. Miller [Mon, 31 Dec 2001 22:05:23 +0000 (22:05 +0000)]
update from autoconf 2.52

23 years agoUpdate from autoconf 2.52
Todd C. Miller [Mon, 31 Dec 2001 22:03:48 +0000 (22:03 +0000)]
Update from autoconf 2.52

23 years agoregen with autoconf 2.52
Todd C. Miller [Mon, 31 Dec 2001 21:57:37 +0000 (21:57 +0000)]
regen with autoconf 2.52

23 years ago o Call AC_PROG_CC_STDC to find out how to run the compiler in ANSI mode
Todd C. Miller [Mon, 31 Dec 2001 21:57:16 +0000 (21:57 +0000)]
 o Call AC_PROG_CC_STDC to find out how to run the compiler in ANSI mode
 o Remove compiler-specific checks for HP-UX now that we use AC_PROG_CC_STDC

23 years agoCheckpoint
Todd C. Miller [Mon, 31 Dec 2001 17:19:24 +0000 (17:19 +0000)]
Checkpoint

23 years agoo Add pam_prep_user function to call pam_setcred() for the target user;
Todd C. Miller [Mon, 31 Dec 2001 17:18:12 +0000 (17:18 +0000)]
o Add pam_prep_user function to call pam_setcred() for the target user;
  on Linux this often sets resource limits.
o When calling pam_end(), try to convert the auth->result to a PAM_FOO
  value.  This is a hack--we really need to stash the last PAM_FOO
  value received and use that instead.

23 years agoo Add pam_prep_user function to call pam_setcred() for the target user;
Todd C. Miller [Mon, 31 Dec 2001 17:18:05 +0000 (17:18 +0000)]
o Add pam_prep_user function to call pam_setcred() for the target user;
  on Linux this often sets resource limits.

23 years agoFix off by one error in number of bytes allocated via malloc (does not
Todd C. Miller [Mon, 31 Dec 2001 05:53:23 +0000 (05:53 +0000)]
Fix off by one error in number of bytes allocated via malloc (does not
affected any released version of sudo).

23 years agoregen
Todd C. Miller [Sun, 30 Dec 2001 22:12:17 +0000 (22:12 +0000)]
regen

23 years agoAllow '@', '(', ')', ':' in arguments to a defaults variable
Todd C. Miller [Sun, 30 Dec 2001 22:12:06 +0000 (22:12 +0000)]
Allow '@', '(', ')', ':' in arguments to a defaults variable
w/o requiring that they be quoted.

23 years agoMention that no double quotes are needed when adding/deleting/assigning
Todd C. Miller [Sun, 30 Dec 2001 19:26:22 +0000 (19:26 +0000)]
Mention that no double quotes are needed when adding/deleting/assigning
a single value to a list.

23 years agoDon't rely on mkdefaults being executable, call perl explicitly.
Todd C. Miller [Sun, 30 Dec 2001 18:58:34 +0000 (18:58 +0000)]
Don't rely on mkdefaults being executable, call perl explicitly.

23 years agoregen
Todd C. Miller [Sun, 30 Dec 2001 18:45:41 +0000 (18:45 +0000)]
regen

23 years agoRemove some XXX that are no longer relevant.
Todd C. Miller [Sun, 30 Dec 2001 18:41:12 +0000 (18:41 +0000)]
Remove some XXX that are no longer relevant.

23 years agoo Roll our own loop instead of using strpbrk() for better grokability
Todd C. Miller [Sun, 30 Dec 2001 18:40:09 +0000 (18:40 +0000)]
o Roll our own loop instead of using strpbrk() for better grokability
o When adding to a list we must malloc() and use memcpy(), not strdup()
  since we must only copy len bytes from str.

23 years agoregen
Todd C. Miller [Fri, 21 Dec 2001 21:49:28 +0000 (21:49 +0000)]
regen

23 years agotypo in comment
Todd C. Miller [Fri, 21 Dec 2001 21:49:05 +0000 (21:49 +0000)]
typo in comment

23 years agocheckpoint
Todd C. Miller [Wed, 19 Dec 2001 16:50:22 +0000 (16:50 +0000)]
checkpoint

23 years agoregen
Todd C. Miller [Wed, 19 Dec 2001 15:56:56 +0000 (15:56 +0000)]
regen

23 years agoavoid the -g flag unless --with-devel was specified
Todd C. Miller [Wed, 19 Dec 2001 15:56:47 +0000 (15:56 +0000)]
avoid the -g flag unless --with-devel was specified

23 years agomkdefaults, def_data.in and sigaction.c were missing from the tarball
Todd C. Miller [Wed, 19 Dec 2001 15:04:46 +0000 (15:04 +0000)]
mkdefaults, def_data.in and sigaction.c were missing from the tarball