]>
granicus.if.org Git - sudo/log
Todd C. Miller [Thu, 13 Dec 2001 02:24:40 +0000 (02:24 +0000)]
'\\' is a perfectly legal character to have in a command line argument.
Todd C. Miller [Thu, 13 Dec 2001 01:24:45 +0000 (01:24 +0000)]
o Defer call to set_fqdn() until it is safe to use log_error()
o Don't print errno string value if gethostbyname fails, it is not relevant
Todd C. Miller [Thu, 13 Dec 2001 01:07:25 +0000 (01:07 +0000)]
Fix CIDR -> in_addr_t conversion.
Todd C. Miller [Wed, 12 Dec 2001 21:21:49 +0000 (21:21 +0000)]
Remove an extra "User_List" in the User_Spec definition
From ybertrand AT snoopymail.com
Todd C. Miller [Wed, 12 Dec 2001 21:00:56 +0000 (21:00 +0000)]
Make 'listpw=never' work for users who are not explicitly mentioned in
sudoers.
Todd C. Miller [Wed, 12 Dec 2001 20:40:12 +0000 (20:40 +0000)]
Remove gratuitous '=' in EBNF grammar; era AT iki.fi
Todd C. Miller [Wed, 12 Dec 2001 20:34:26 +0000 (20:34 +0000)]
Document new list Defaults type and convert env_keep and env_delete
to lists.
Document new env_check option.
Todd C. Miller [Wed, 12 Dec 2001 20:11:47 +0000 (20:11 +0000)]
regen parser
Todd C. Miller [Wed, 12 Dec 2001 19:56:53 +0000 (19:56 +0000)]
Don't let '#' appear in a {WORD} and restrict #foo in a Runas spec to #[0-9-]+.
Todd C. Miller [Wed, 12 Dec 2001 19:55:36 +0000 (19:55 +0000)]
regen
Todd C. Miller [Wed, 12 Dec 2001 19:55:25 +0000 (19:55 +0000)]
Simpler SUDO_FUNC_ISBLANK that uses AC_TRY_LINK
Todd C. Miller [Wed, 12 Dec 2001 19:43:23 +0000 (19:43 +0000)]
Add check for skeyaccess(3)
Todd C. Miller [Wed, 12 Dec 2001 00:47:49 +0000 (00:47 +0000)]
Document new -c, -f, and -q options
Todd C. Miller [Wed, 12 Dec 2001 00:41:33 +0000 (00:41 +0000)]
o Add -f option (alternate sudoers file)
o Convert to use getopt(3)
Todd C. Miller [Wed, 12 Dec 2001 00:31:16 +0000 (00:31 +0000)]
regen
Todd C. Miller [Wed, 12 Dec 2001 00:31:07 +0000 (00:31 +0000)]
Add check for isblank and a replacement macro if it doesn't exist.
Todd C. Miller [Tue, 11 Dec 2001 23:22:54 +0000 (23:22 +0000)]
In check-only mode, don't create sudoers if it does not already exist.
Todd C. Miller [Tue, 11 Dec 2001 23:06:52 +0000 (23:06 +0000)]
o Add a new token, DEFVAR, to indicate a Defaults variable name
o Add support for "+=" and "-=" list operators
o replace some 1 and 0 with TRUE and FALSE for greater legibility.
Todd C. Miller [Tue, 11 Dec 2001 23:05:44 +0000 (23:05 +0000)]
o Use exclusive start conditions to remove some ambiguity in the
lexer. Also reorder some things for clarity.
o Add support for "+=" and "-=" list operators.
o Use the new DEFVAR token to denote a Defaults variable name.
Todd C. Miller [Tue, 11 Dec 2001 23:03:24 +0000 (23:03 +0000)]
Prototype init_envtables()
Todd C. Miller [Tue, 11 Dec 2001 23:02:51 +0000 (23:02 +0000)]
o Convert environment handling to use lists instead of strings.
This greatly simplifies routines that need to do "foreach" type
operations.
o Add new init_envtables() function to set env_check and env_delete
defaults based on initial_badenv_table and initial_checkenv_table
(formerly sudo_badenv_table).
Todd C. Miller [Tue, 11 Dec 2001 23:00:34 +0000 (23:00 +0000)]
o Add a new LIST type and functions to manipulate it.
o This is for use with environment handling variables.
o Call new init_envtables() routine inside init_defaults() to
initialize the environment lists.
Todd C. Miller [Tue, 11 Dec 2001 22:57:44 +0000 (22:57 +0000)]
Convert environment options to use the new LIST type and add a new one,
env_check that only deletes if the sanity check fails.
Todd C. Miller [Tue, 11 Dec 2001 22:55:23 +0000 (22:55 +0000)]
Add dummy version of init_envtables()
Todd C. Miller [Tue, 11 Dec 2001 22:53:39 +0000 (22:53 +0000)]
honor quiet mode
Todd C. Miller [Tue, 11 Dec 2001 22:51:17 +0000 (22:51 +0000)]
Add check-only mode
Todd C. Miller [Tue, 11 Dec 2001 01:27:42 +0000 (01:27 +0000)]
Fix generation of entries with NULL descriptions.
Todd C. Miller [Sun, 9 Dec 2001 05:27:11 +0000 (05:27 +0000)]
Use sigaction_t and quiet a gcc warning.
Todd C. Miller [Sun, 9 Dec 2001 05:20:34 +0000 (05:20 +0000)]
Must reset signal handlers before we exec
Todd C. Miller [Sun, 9 Dec 2001 05:17:00 +0000 (05:17 +0000)]
Be carefule now that tgetpass() can return NULL (user hit ^C).
PAM version needs testing.
Set SIGTSTP to SIG_DFL during password entry so user can suspend us.
Todd C. Miller [Sun, 9 Dec 2001 05:14:23 +0000 (05:14 +0000)]
Add support for interrupting/suspending tgetpass via keyboard input.
If you suspend sudo from the password prompt and resume it will
re-prompt you.
Todd C. Miller [Sun, 9 Dec 2001 05:09:10 +0000 (05:09 +0000)]
Don't block keyboard interrupt signals, just set them to SIG_IGN.
Todd C. Miller [Sat, 8 Dec 2001 19:48:03 +0000 (19:48 +0000)]
add back HAVE_SIGACTION
Todd C. Miller [Sat, 8 Dec 2001 19:44:55 +0000 (19:44 +0000)]
regen
Todd C. Miller [Sat, 8 Dec 2001 19:44:30 +0000 (19:44 +0000)]
Kill POSIX_SIGNALS define and old signal support now that we emulate POSIX ones
Also be sure to correctly initialize struct sigaction.
Todd C. Miller [Sat, 8 Dec 2001 19:42:32 +0000 (19:42 +0000)]
Don't need config.h or "#ifndef HAVE_STRERROR" wrapper.
Todd C. Miller [Sat, 8 Dec 2001 19:39:28 +0000 (19:39 +0000)]
Add scaffolding for POSIX signal emulation
Todd C. Miller [Sat, 8 Dec 2001 19:36:48 +0000 (19:36 +0000)]
o Add missing ';' so this compiles
o Can't use NULL since we don't include stdio.h
Todd C. Miller [Sat, 8 Dec 2001 19:23:11 +0000 (19:23 +0000)]
Emulate sigaction() using sigvec()
Todd C. Miller [Tue, 13 Nov 2001 00:32:11 +0000 (00:32 +0000)]
Document new behavior of negative values of timestamp_timeout
Fix a typo
Todd C. Miller [Tue, 13 Nov 2001 00:31:20 +0000 (00:31 +0000)]
Add security note about command not being logged after 'sudo su' and
friends.
Todd C. Miller [Tue, 13 Nov 2001 00:19:29 +0000 (00:19 +0000)]
Mention that -V prints default values when run as root, including
the list of environment variables to clear.
Todd C. Miller [Tue, 13 Nov 2001 00:14:29 +0000 (00:14 +0000)]
Run pod2man with --quotes=none to avoid stupid quoting of C<> entries.
Todd C. Miller [Mon, 12 Nov 2001 18:13:03 +0000 (18:13 +0000)]
Add mail_badpass option
Also modify mail_always behavior to also send mail when the password is wrong
Todd C. Miller [Mon, 12 Nov 2001 18:08:30 +0000 (18:08 +0000)]
Dump default bad env table when 'sudo -V' is run by root.
Todd C. Miller [Mon, 12 Nov 2001 04:52:23 +0000 (04:52 +0000)]
document env_delete
Todd C. Miller [Mon, 12 Nov 2001 04:51:57 +0000 (04:51 +0000)]
Add support for '*' in env_keep when not resetting the environment
(ie: the normal case).
Todd C. Miller [Mon, 12 Nov 2001 04:47:22 +0000 (04:47 +0000)]
Add env_delete variable that lets the user replace/add to the bad_env_table.
Allow '*' wildcard in env_keep entries.
Todd C. Miller [Tue, 6 Nov 2001 18:59:36 +0000 (18:59 +0000)]
Force umask to 022 to guarantee sane directory permissions.
Todd C. Miller [Fri, 2 Nov 2001 23:09:35 +0000 (23:09 +0000)]
add sudo.tab.h and sudo.tab.c to sudo.tab.o dependency
Todd C. Miller [Fri, 2 Nov 2001 22:25:21 +0000 (22:25 +0000)]
fix breakage in last commit
Todd C. Miller [Fri, 2 Nov 2001 22:18:04 +0000 (22:18 +0000)]
acsite.m4 -> aclocal.m4
Todd C. Miller [Fri, 2 Nov 2001 20:59:22 +0000 (20:59 +0000)]
fix I_TS_TIMEOUT vs. I_TIMESTAMP_TIMEOUT pasto in previous commit
Todd C. Miller [Fri, 2 Nov 2001 20:57:02 +0000 (20:57 +0000)]
regenerated from def_data.in
Todd C. Miller [Fri, 2 Nov 2001 20:56:20 +0000 (20:56 +0000)]
Add new T_UINT type that most things use instead of T_INT
If timestamp_timeout is < 0 then treat the ticket as never expiring
(to be expired manually by the user).
Todd C. Miller [Fri, 2 Nov 2001 20:51:43 +0000 (20:51 +0000)]
change most T_INT -> T_UINT
Todd C. Miller [Fri, 2 Nov 2001 20:51:18 +0000 (20:51 +0000)]
fix warning when no args
Todd C. Miller [Fri, 2 Nov 2001 17:52:12 +0000 (17:52 +0000)]
Change 2 Exit() -> exit()
Avoid stdio in Exit() and call _exit() if we are a signal handler.
We no longer print the signal number but the user can just check the
exit value for that.
Todd C. Miller [Tue, 16 Oct 2001 05:35:26 +0000 (05:35 +0000)]
when setting up pipes in child process check for case where stdin == pipe fd 0
Todd C. Miller [Thu, 11 Oct 2001 17:20:33 +0000 (17:20 +0000)]
Ignore editor exit value since XPG4 says vi's exit value is the count
of editing errors made (failed searches, etc).
Todd C. Miller [Fri, 5 Oct 2001 20:39:13 +0000 (20:39 +0000)]
regen
Todd C. Miller [Fri, 5 Oct 2001 20:39:05 +0000 (20:39 +0000)]
sco now is identified by config.guess as *-sco-*
Todd C. Miller [Fri, 5 Oct 2001 20:24:14 +0000 (20:24 +0000)]
Check for getspnam() in -lgen if not in -lc for UnixWare.
Todd C. Miller [Tue, 18 Sep 2001 01:48:48 +0000 (01:48 +0000)]
"upper case" -> "uppercase"
Todd C. Miller [Tue, 18 Sep 2001 01:32:35 +0000 (01:32 +0000)]
fix typos and grammar; pjanzen@foatdi.harvard.edu
Todd C. Miller [Tue, 28 Aug 2001 14:26:38 +0000 (14:26 +0000)]
Missing word (specify); krapht@secureops.com
Todd C. Miller [Thu, 23 Aug 2001 21:43:38 +0000 (21:43 +0000)]
If we fail to lookup a login class, apply the default one.
Todd C. Miller [Thu, 23 Aug 2001 21:42:31 +0000 (21:42 +0000)]
In log_error() free message, not logline unconditionally, then
free logline if it is not the same as message. No function change
but this mirrors how they are allocated.
Todd C. Miller [Tue, 17 Jul 2001 03:33:57 +0000 (03:33 +0000)]
regenerate
Todd C. Miller [Tue, 17 Jul 2001 03:33:48 +0000 (03:33 +0000)]
remove some backslash quotes that are unneeded
Todd C. Miller [Tue, 17 Jul 2001 03:30:30 +0000 (03:30 +0000)]
o Tweaks to make this work with autoconf-2.50
o Use AC_LIBOBJ instead of changing LIBOBJS directly
o Use AC_REPLACE_FUNCS where we can
o Use AC_CHECK_FUNCS instead of AC_CHECK_FUNC so we don't have to
AC_DEFINE things manually.
Todd C. Miller [Tue, 17 Jul 2001 03:28:31 +0000 (03:28 +0000)]
Updated from autoconf-2.50
Todd C. Miller [Tue, 22 May 2001 23:11:21 +0000 (23:11 +0000)]
Update mailing list section. We use mailman now, not majordomo.
Todd C. Miller [Thu, 10 May 2001 18:55:12 +0000 (18:55 +0000)]
Use setpwent()/endpwent() + all the shadow variants to make sure
we don't inadvertantly leak an fd to the child. Apparently Linux's
shadow routines leave the fd open even if you don't call setspent().
Reported by mike@gistnet.com; different patch used.
Todd C. Miller [Fri, 13 Apr 2001 01:43:40 +0000 (01:43 +0000)]
s/eg./e.g./
Todd C. Miller [Fri, 13 Apr 2001 01:42:50 +0000 (01:42 +0000)]
select() may return EAGAIN. If so, continue like we do for EINTR.
Todd C. Miller [Fri, 13 Apr 2001 01:41:57 +0000 (01:41 +0000)]
Fix a non-exploitable buffer overflow in the word splitting code. This
should really be rewritten.
Todd C. Miller [Fri, 13 Apr 2001 01:41:04 +0000 (01:41 +0000)]
FAQ link goes away
Todd C. Miller [Fri, 13 Apr 2001 01:40:47 +0000 (01:40 +0000)]
Tell people to look in sample.syslog.conf for examples, not FAQ
Todd C. Miller [Fri, 13 Apr 2001 01:40:15 +0000 (01:40 +0000)]
Update list of env vars that are cleared
Todd C. Miller [Fri, 13 Apr 2001 01:36:59 +0000 (01:36 +0000)]
remove struct env_table decl since that stuff has all moved to env.c
Todd C. Miller [Wed, 4 Apr 2001 17:17:04 +0000 (17:17 +0000)]
Fix a pasto in flock-style unlocking and include <sys/file.h> for flock
on older systems; twetzel@gwdg.de
Todd C. Miller [Wed, 4 Apr 2001 17:14:52 +0000 (17:14 +0000)]
regen to get NeXT lockf/flock fix
Todd C. Miller [Wed, 4 Apr 2001 17:14:13 +0000 (17:14 +0000)]
force NeXT to use flock since lockf is broken
Todd C. Miller [Fri, 30 Mar 2001 13:54:27 +0000 (13:54 +0000)]
Use stashed user_gid when checking against exempt gid since sudo
sets its gid to a a value that makes sudoers readable. Previously
if you used gid 0 as the exempt group everyone would be exempt.
From Paul Kranenburg <pk@cs.few.eur.nl>
Todd C. Miller [Thu, 29 Mar 2001 18:14:55 +0000 (18:14 +0000)]
regen
Todd C. Miller [Thu, 29 Mar 2001 18:08:56 +0000 (18:08 +0000)]
#include stdio.h in SUDO_CHECK_TYPE since IRIX 6 aparently defines some
types (such as ssize_t) therein.
Todd C. Miller [Fri, 2 Mar 2001 14:09:55 +0000 (14:09 +0000)]
Fix negation of paths in a boolean context. Problem found by apt@UH.EDU
Todd C. Miller [Fri, 23 Feb 2001 18:03:46 +0000 (18:03 +0000)]
pasto
Todd C. Miller [Sat, 17 Feb 2001 21:11:41 +0000 (21:11 +0000)]
SA_RESETHAND means the opposite of what I was thinking--oops
To block all signals in old-style signals use ~0, not 0xffffffff
Todd C. Miller [Sun, 4 Feb 2001 16:16:20 +0000 (16:16 +0000)]
coerce difference of pointers to int when used in a string length printf
format; deraadt@openbsd.org
Todd C. Miller [Wed, 17 Jan 2001 16:34:36 +0000 (16:34 +0000)]
Block all signals in Exit() to avoid a signal race. There is still a
tiny window but I'm not going to worry about it.
Todd C. Miller [Sun, 7 Jan 2001 18:57:23 +0000 (18:57 +0000)]
glibc uses the LANGUAGE env var so clear that too; Solar Designer
Todd C. Miller [Sun, 7 Jan 2001 18:55:32 +0000 (18:55 +0000)]
Regenerate with a fix to flex.skl that preserves errno from clobbering
by isatty().
Todd C. Miller [Sun, 31 Dec 2000 01:39:06 +0000 (01:39 +0000)]
Some defaults I_ defines got renamed.
Todd C. Miller [Sun, 31 Dec 2000 01:38:37 +0000 (01:38 +0000)]
Move defaults info into its own files from which we generate
.h and .c files. This makes adding or rearranging variables
much simpler.
Todd C. Miller [Sat, 30 Dec 2000 21:58:11 +0000 (21:58 +0000)]
fix typo in last commit
Todd C. Miller [Sat, 30 Dec 2000 21:55:21 +0000 (21:55 +0000)]
Add check + emulation for setegid (like seteuid).
Todd C. Miller [Sat, 30 Dec 2000 21:22:08 +0000 (21:22 +0000)]
Make env_keep override badenv_table as documented
Fix traversal of badenv_table (broken in last commit)
Todd C. Miller [Sat, 30 Dec 2000 03:59:40 +0000 (03:59 +0000)]
Don't try and build saved uid version of set_perms on systems w/o them.
Rename set_perms_saved_uid() -> set_perms_posix()
Make set_perms_setreuid simply be set_perms_fallback() and simply include
the appropriate function at compile time (setreuid() vs. setuid()).