Commit Graph

2727 Commits

Author SHA1 Message Date
Todd C. Miller
ea24bef19c 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.
2002-01-15 23:43:59 +00:00
Todd C. Miller
5236ceedf7 regen 2002-01-15 22:47:38 +00:00
Todd C. Miller
f039427253 Add a configure option to turn off use of POSIX saved IDs 2002-01-15 22:47:29 +00:00
Todd C. Miller
62233923e0 regen 2002-01-15 20:48:40 +00:00
Todd C. Miller
495dc92488 add --with-efence option 2002-01-15 20:48:34 +00:00
Todd C. Miller
eb97ce45ea 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.
2002-01-15 20:39:59 +00:00
Todd C. Miller
8b7187483b regen 2002-01-15 18:16:46 +00:00
Todd C. Miller
08b394dc39 Quoted commas were not being treated correctly in command line arguments. 2002-01-15 18:16:31 +00:00
Todd C. Miller
26e835b096 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.
2002-01-15 01:53:02 +00:00
Todd C. Miller
1b6d4ad876 Add 'continue' statements to optimize the switch statement. From Solar. 2002-01-15 01:45:40 +00:00
Todd C. Miller
e869e0eb50 Regen from new sudoers.pod 2002-01-13 18:42:15 +00:00
Todd C. Miller
017366ce4a Add caveat about stay_setuid flag 2002-01-13 18:36:44 +00:00
Todd C. Miller
9eac6eeaa3 If set_perms == set_perms_posix and the stay_setuid flag is not
set, set all uids to 0 and use set_perms_fallback().
2002-01-13 18:29:23 +00:00
Todd C. Miller
26f2a96558 Remove PERM_FULL_USER (which is no longer used) and add PERM_FULL_ROOT
(used when exec'ing the mailer).
2002-01-13 18:28:09 +00:00
Todd C. Miller
ddf96f301d Use set_perms(PERM_FULL_ROOT, 0) before exec'ing the mailer since we never
want to run the mailer setuid.
2002-01-13 18:27:25 +00:00
Todd C. Miller
2abe7d8e13 Use sudo.ws instead of courtesan.com in URLs 2002-01-12 22:55:01 +00:00
Todd C. Miller
96fc0545c2 Fix mansect substitution 2002-01-12 19:00:15 +00:00
Todd C. Miller
43a65bb5c6 Substitute man sections in Makefile.binary 2002-01-12 18:15:53 +00:00
Todd C. Miller
a6be68c673 Sync install targets with Makefile.in and substitute in man sections. 2002-01-12 18:15:34 +00:00
Todd C. Miller
e1b65f1e6a version is 1.6.4 2002-01-12 18:09:55 +00:00
Todd C. Miller
33336389ee Repair bindist target 2002-01-12 17:59:01 +00:00
Todd C. Miller
81b534b292 sync for 1.6.4 2002-01-12 16:43:14 +00:00
Todd C. Miller
2fe1bcd3de Fix case where neither whoami nor id are found 2002-01-10 18:00:58 +00:00
Todd C. Miller
0244c4ee6c If neither whoami nor id exists, just assume we are root. 2002-01-09 17:35:14 +00:00
Todd C. Miller
b7da5ec518 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.
2002-01-09 16:56:04 +00:00
Todd C. Miller
a82e7a8efe (c) 2002 2002-01-08 15:00:18 +00:00
Todd C. Miller
d0847eb01f checkpoint 2002-01-08 14:21:14 +00:00
Todd C. Miller
53299b78a0 Defer assigning new environment until right before the exec. 2002-01-08 14:20:57 +00:00
Todd C. Miller
bd74bbdfb0 kill extra blank line 2002-01-08 14:08:23 +00:00
Todd C. Miller
5849db069c regen 2002-01-07 18:59:59 +00:00
Todd C. Miller
de7c188450 Use -O not -O2 for m88k-motorola-sysv* since motorola gcc-derived
compiler doesn't recognise -O2.
2002-01-07 18:59:47 +00:00
Todd C. Miller
0910f8203b Clarify origins of Root Group sudo a bit based on info from billp@rootgroup.com 2002-01-07 04:02:04 +00:00
Todd C. Miller
1ac8e6f385 2002 2002-01-03 03:41:25 +00:00
Todd C. Miller
45a28b58aa checkpoint for 1.6.4rc1 2002-01-03 03:26:24 +00:00
Todd C. Miller
ce95eb80b6 now generated via autoheader 2002-01-02 22:40:14 +00:00
Todd C. Miller
b05c753da6 regen 2002-01-02 22:40:04 +00:00
Todd C. Miller
a3e429aed9 Move in some stuff that was previously in config.h. 2002-01-02 22:37:19 +00:00
Todd C. Miller
5baef4dad8 Add info for autoheader. 2002-01-02 22:36:50 +00:00
Todd C. Miller
edbdf215f2 o Add DESTDIR support
o Use -M, -O, and -G instead of -m, -o, and -g to facilitate non-root installs
2002-01-01 21:53:12 +00:00
Todd C. Miller
76b2f1a321 Add -M option (like -m but only for root)
If we can't find "whoami", use "id" w/ some sed.
2002-01-01 21:48:26 +00:00
Todd C. Miller
ed6b129d8e regen 2002-01-01 19:01:21 +00:00
Todd C. Miller
513605df42 allow user to always override mansectsu and mansectform 2002-01-01 19:00:41 +00:00
Todd C. Miller
eecc076ef1 update from autoconf 2.52 2001-12-31 22:05:23 +00:00
Todd C. Miller
360f4d01f6 Update from autoconf 2.52 2001-12-31 22:03:48 +00:00
Todd C. Miller
c0b31d5886 regen with autoconf 2.52 2001-12-31 21:57:37 +00:00
Todd C. Miller
1ae422826e 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
2001-12-31 21:57:16 +00:00
Todd C. Miller
24995ea370 Checkpoint 2001-12-31 17:19:24 +00:00
Todd C. Miller
9a78f6e759 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.
2001-12-31 17:18:12 +00:00
Todd C. Miller
a55e6898e1 o Add pam_prep_user function to call pam_setcred() for the target user;
on Linux this often sets resource limits.
2001-12-31 17:18:05 +00:00
Todd C. Miller
705c4c7515 Fix off by one error in number of bytes allocated via malloc (does not
affected any released version of sudo).
2001-12-31 05:53:23 +00:00