]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 20 Jan 2003 20:57:51 +0000 (20:57 +0000)]
Add some more square backets to make autoconf 2.57 happy
Todd C. Miller [Mon, 20 Jan 2003 19:39:04 +0000 (19:39 +0000)]
Updates from autoconf-2.57
Todd C. Miller [Mon, 20 Jan 2003 19:39:04 +0000 (19:39 +0000)]
Updates from autoconf-2.57
Todd C. Miller [Fri, 17 Jan 2003 23:10:05 +0000 (23:10 +0000)]
regen
Todd C. Miller [Fri, 17 Jan 2003 23:10:05 +0000 (23:10 +0000)]
regen
Todd C. Miller [Fri, 17 Jan 2003 23:09:45 +0000 (23:09 +0000)]
Add support for Defaults>RunasUser
Todd C. Miller [Tue, 7 Jan 2003 00:10:04 +0000 (00:10 +0000)]
fclose() yyin after each yyparse() is done and use fopen() instead of
using freopen().
Todd C. Miller [Tue, 7 Jan 2003 00:02:33 +0000 (00:02 +0000)]
Better fix for sudoers files w/o a newline before EOF. It looks
like the issue is that yyrestart() does not reset the start condition
to INITIAL which is an issue since we parse sudoers multiple times.
Todd C. Miller [Mon, 6 Jan 2003 23:47:04 +0000 (23:47 +0000)]
Work around what appears to be a flex bug when dealing with files
that lack a final newline before EOF. This adds a rule to match
EOF in the non-initial states which resets the state to INITIAL and
throws an error.
Todd C. Miller [Mon, 6 Jan 2003 20:06:12 +0000 (20:06 +0000)]
o The parser needs sudoers to end with a newline but some editors (emacs) may
not add one. Check for a missing newline at EOF and add one if needed.
o Set quiet flag during initial sudoers parse (to get options)
o Move yyrestart() call and always use freopen() to open yyin after
initial sudoers parse.
Todd C. Miller [Sun, 15 Dec 2002 16:24:24 +0000 (16:24 +0000)]
Fix pasto/thinko in setresgid()/setregid() usage.
Want to set effective gid, not real gid, when reading sudoers.
Todd C. Miller [Sun, 15 Dec 2002 16:08:32 +0000 (16:08 +0000)]
don't compile set_perms_posix if we have setreuid or setresuid
Todd C. Miller [Sat, 14 Dec 2002 19:21:27 +0000 (19:21 +0000)]
document new prompt escapes
Todd C. Miller [Sat, 14 Dec 2002 19:15:30 +0000 (19:15 +0000)]
Add %U and %H escapes and redo prompt rewriting. "%%" now gets collapsed
to "%" as was originally intended. This also gets rid of lastchar (does
lookahead instead of lookback) which should simplify the logic slightly.
Todd C. Miller [Fri, 13 Dec 2002 18:20:34 +0000 (18:20 +0000)]
Write the prompt *after* turning off echo to avoid some password characters
being echoed on heavily-loaded machines with fast typists.
Todd C. Miller [Fri, 13 Dec 2002 18:09:04 +0000 (18:09 +0000)]
Add support for mipseb; wiz@danbala.tuwien.ac.at
Todd C. Miller [Fri, 13 Dec 2002 17:48:11 +0000 (17:48 +0000)]
Fix IRIX fallout from name changes in man dir/sect Makefile variables.
Patch from erici AT motown DOT cc DOT utexas DOT edu
Todd C. Miller [Fri, 13 Dec 2002 16:33:26 +0000 (16:33 +0000)]
Keep a local copy of tgetpass_flags so we don't add in TGP_ECHO to
the global copy. Problem noted by Peter Pentchev.
Todd C. Miller [Thu, 28 Nov 2002 23:43:35 +0000 (23:43 +0000)]
regen
Todd C. Miller [Thu, 28 Nov 2002 23:43:22 +0000 (23:43 +0000)]
Add missing yyerror() calls; YYERROR does not seem to call this for us.
Todd C. Miller [Tue, 26 Nov 2002 17:09:59 +0000 (17:09 +0000)]
fix typo in comment; Pedro Bastos
Todd C. Miller [Fri, 22 Nov 2002 19:41:31 +0000 (19:41 +0000)]
document --disable-setresuid
Todd C. Miller [Fri, 22 Nov 2002 19:41:13 +0000 (19:41 +0000)]
Sprinkle some volatile qualifiers to prevent over-enthusiastic
optimizers from removing memset() calls.
Todd C. Miller [Fri, 22 Nov 2002 19:11:47 +0000 (19:11 +0000)]
minor sign fixes pointed out by gcc -Wsign-compare
Todd C. Miller [Fri, 22 Nov 2002 19:09:49 +0000 (19:09 +0000)]
Revamp set_perms. We now use a version based on setresuid() or setreuid()
when possible since that allows us to support the stay_setuid option and
we always know exactly what the semantics will be (various Linux kernels
have broken POSIX saved uid support).
Todd C. Miller [Fri, 22 Nov 2002 19:08:10 +0000 (19:08 +0000)]
regen from configure.in
Todd C. Miller [Fri, 22 Nov 2002 19:07:04 +0000 (19:07 +0000)]
Add checks for setresuid() and a way to disable using it
Todd C. Miller [Fri, 22 Nov 2002 19:05:02 +0000 (19:05 +0000)]
No long need to emulate set*[ug]id() via setres[ug]id() or setre[ug]id().
The new set_perms stuff only uses things it knows are there.
Todd C. Miller [Fri, 22 Nov 2002 18:33:47 +0000 (18:33 +0000)]
Before exec, restore state of signal handlers to be the same as
when we were initialy invoked instead of just reseting to SIG_DFL.
Fixes a problem when using sudo with nohup. Based on a patch from
Paul Markham.
Todd C. Miller [Fri, 22 Nov 2002 18:23:24 +0000 (18:23 +0000)]
o timestamp_uid should be uid_t, not int
o clarify error message when sudo is run by root and no_root_sudo is set
Todd C. Miller [Thu, 19 Sep 2002 21:27:59 +0000 (21:27 +0000)]
update ftp link for bison
Todd C. Miller [Sat, 20 Jul 2002 12:30:45 +0000 (12:30 +0000)]
Error out if setusercontext() fails and the runas user is not root.
Todd C. Miller [Mon, 20 May 2002 20:51:23 +0000 (20:51 +0000)]
Fix rcsid
Todd C. Miller [Mon, 20 May 2002 20:50:41 +0000 (20:50 +0000)]
Fix SecurID API test
Todd C. Miller [Fri, 17 May 2002 17:20:57 +0000 (17:20 +0000)]
typo in comment
Todd C. Miller [Fri, 17 May 2002 17:20:09 +0000 (17:20 +0000)]
securid5 stuff needs pthreads. Just adding -lpthread is suboptimal
but I don't see a better way at the moment.
Todd C. Miller [Fri, 17 May 2002 17:04:10 +0000 (17:04 +0000)]
SecurID API version 5 support from Michael Stroucken
Todd C. Miller [Fri, 17 May 2002 17:02:35 +0000 (17:02 +0000)]
Add check for SecurID 5.0 API
Todd C. Miller [Wed, 8 May 2002 20:46:47 +0000 (20:46 +0000)]
We actually do still need config.h to get the 'const' definition for K&R C.
Todd C. Miller [Sun, 5 May 2002 20:43:15 +0000 (20:43 +0000)]
regen with autoconf 2.5.3
Todd C. Miller [Sun, 5 May 2002 20:25:10 +0000 (20:25 +0000)]
Don't set sysconfdir to '/etc' if the user has specified a --prefix.
Todd C. Miller [Sun, 5 May 2002 20:14:59 +0000 (20:14 +0000)]
Some fixes for autoconf 2.53 from Robert Uhl
o don't AC_SUBST LIBOBJS
o force a 4th arg for AC_CHECK_HEADER() to workaround a bug
Todd C. Miller [Sun, 5 May 2002 19:58:29 +0000 (19:58 +0000)]
No need for dump_badenv() now that dump_defaults() knows how to dump lists.
Todd C. Miller [Sun, 5 May 2002 01:31:57 +0000 (01:31 +0000)]
++version
Todd C. Miller [Sun, 5 May 2002 00:57:47 +0000 (00:57 +0000)]
document timestampowner
Todd C. Miller [Sun, 5 May 2002 00:45:51 +0000 (00:45 +0000)]
Don't call set_perms() when doing timestamp stuff unless timestamp_uid != 0.
Todd C. Miller [Sun, 5 May 2002 00:43:38 +0000 (00:43 +0000)]
g/c second arg to set_perms--it is no longer used
Todd C. Miller [Fri, 3 May 2002 22:48:17 +0000 (22:48 +0000)]
Add support for non-root timestamp dirs. This allows the timestamp
dir to be shared via NFS (though this is not recommended).
Todd C. Miller [Fri, 3 May 2002 22:47:29 +0000 (22:47 +0000)]
Add timestampowner, "Owner of the authentication timestamp dir"
Todd C. Miller [Thu, 2 May 2002 19:40:25 +0000 (19:40 +0000)]
Don't try to pre-compute the size of the new envp, just allocate
space up front and realloc as needed. Changes to the new env pointer
must all be made through insert_env() which now keeps track of
spaced used and allocates as needed.
Todd C. Miller [Fri, 26 Apr 2002 19:12:57 +0000 (19:12 +0000)]
regen
Todd C. Miller [Fri, 26 Apr 2002 19:12:34 +0000 (19:12 +0000)]
Fix two typo/pastos; from jrj@purdue.edu
Todd C. Miller [Thu, 25 Apr 2002 15:36:19 +0000 (15:36 +0000)]
++version
Todd C. Miller [Thu, 25 Apr 2002 15:36:12 +0000 (15:36 +0000)]
regen
Todd C. Miller [Thu, 25 Apr 2002 15:31:58 +0000 (15:31 +0000)]
Sync with 1.6.6
Todd C. Miller [Thu, 25 Apr 2002 15:30:12 +0000 (15:30 +0000)]
The the loop used to expand %h and %u, the lastchar variable was not being
initialized. This means that if the last char in the prompt is '%' and the
first char is 'h' or 'u' a extra copy of the host or user name would be
copied, for which space had not been allocated.
Todd C. Miller [Thu, 18 Apr 2002 15:41:30 +0000 (15:41 +0000)]
crank version to 1.6.6
Todd C. Miller [Thu, 18 Apr 2002 15:39:19 +0000 (15:39 +0000)]
#undef VOID to get rid of an AFS warning
Todd C. Miller [Thu, 18 Apr 2002 15:38:52 +0000 (15:38 +0000)]
Use easprintf instead of emalloc + sprintf for some things.
Todd C. Miller [Sat, 16 Mar 2002 00:45:48 +0000 (00:45 +0000)]
regen
Todd C. Miller [Sat, 16 Mar 2002 00:44:48 +0000 (00:44 +0000)]
Remove Chris Jepeway's email address so people don't bug him ;-)
Todd C. Miller [Tue, 12 Mar 2002 03:19:04 +0000 (03:19 +0000)]
Move endpwent() to be after set_perms(PERM_RUNAS, ...) and also call
endgrent() at the same time.
Todd C. Miller [Fri, 22 Feb 2002 03:23:05 +0000 (03:23 +0000)]
Make it clear which configure options take arguments.
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.
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.
Todd C. Miller [Tue, 22 Jan 2002 03:37:55 +0000 (03:37 +0000)]
Use sigaction() not signal()
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
Todd C. Miller [Tue, 22 Jan 2002 02:03:25 +0000 (02:03 +0000)]
checkpoint for 1.6.5p2
Todd C. Miller [Tue, 22 Jan 2002 02:01:15 +0000 (02:01 +0000)]
regen
Todd C. Miller [Tue, 22 Jan 2002 02:01:09 +0000 (02:01 +0000)]
Add --disable-setreuid flag
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.
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().
Todd C. Miller [Tue, 22 Jan 2002 01:58:42 +0000 (01:58 +0000)]
Update 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()
Todd C. Miller [Mon, 21 Jan 2002 22:46:02 +0000 (22:46 +0000)]
Make this compile w/o warnings
Todd C. Miller [Mon, 21 Jan 2002 22:36:33 +0000 (22:36 +0000)]
Mention that we can't use pam_acct_mgmt()
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.
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.
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.
Todd C. Miller [Sun, 20 Jan 2002 00:43:16 +0000 (00:43 +0000)]
Don'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.
Todd C. Miller [Fri, 18 Jan 2002 19:18:57 +0000 (19:18 +0000)]
regen
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.
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().
Todd C. Miller [Thu, 17 Jan 2002 16:30:53 +0000 (16:30 +0000)]
Checkpoint for 1.6.5p1
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).
Todd C. Miller [Thu, 17 Jan 2002 15:35:54 +0000 (15:35 +0000)]
Don't use memory after it has been freed.
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
Todd C. Miller [Thu, 17 Jan 2002 01:00:53 +0000 (01:00 +0000)]
++version
Todd C. Miller [Thu, 17 Jan 2002 00:53:58 +0000 (00:53 +0000)]
checkpoint for sudo 1.6.5
Todd C. Miller [Wed, 16 Jan 2002 23:37:43 +0000 (23:37 +0000)]
regen
Todd C. Miller [Wed, 16 Jan 2002 23:37:34 +0000 (23:37 +0000)]
version 1.6.5
Todd C. Miller [Wed, 16 Jan 2002 23:37:01 +0000 (23:37 +0000)]
sudo version 1.6.5
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.
Todd C. Miller [Wed, 16 Jan 2002 21:27:09 +0000 (21:27 +0000)]
Bring back PERM_FULL_USER
Todd C. Miller [Wed, 16 Jan 2002 21:26:47 +0000 (21:26 +0000)]
regen
Todd C. Miller [Wed, 16 Jan 2002 21:26:27 +0000 (21:26 +0000)]
version 1.6.5
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.
Todd C. Miller [Wed, 16 Jan 2002 17:44:11 +0000 (17:44 +0000)]
checkpoint for 1.6.4p2
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.