]> granicus.if.org Git - sudo/log
sudo
23 years agoregen
Todd C. Miller [Sat, 15 Dec 2001 15:57:06 +0000 (15:57 +0000)]
regen

23 years agouse AC_SYS_POSIX_TERMIOS instead of rolling our own
Todd C. Miller [Sat, 15 Dec 2001 15:57:03 +0000 (15:57 +0000)]
use AC_SYS_POSIX_TERMIOS instead of rolling our own

23 years agoReference sudo.ws not courtesan.com
Todd C. Miller [Sat, 15 Dec 2001 15:33:43 +0000 (15:33 +0000)]
Reference sudo.ws not courtesan.com

23 years agoAdd notes on shadow passwords
Todd C. Miller [Sat, 15 Dec 2001 15:29:57 +0000 (15:29 +0000)]
Add notes on shadow passwords

23 years agoIn list mode (sudo -l), characters escaped with a backslash
Todd C. Miller [Sat, 15 Dec 2001 05:48:06 +0000 (05:48 +0000)]
In list mode (sudo -l), characters escaped with a backslash
are shown verbatim with the backslash.

23 years agoAdd simple examples from OpenBSD (Marc Espie)
Todd C. Miller [Sat, 15 Dec 2001 05:44:06 +0000 (05:44 +0000)]
Add simple examples from OpenBSD (Marc Espie)

23 years agoCatch SIGTTIN and SIGTTOU too and treat them like SIGTSTP.
Todd C. Miller [Sat, 15 Dec 2001 05:40:12 +0000 (05:40 +0000)]
Catch SIGTTIN and SIGTTOU too and treat them like SIGTSTP.

23 years agominor prettyification
Todd C. Miller [Sat, 15 Dec 2001 02:53:20 +0000 (02:53 +0000)]
minor prettyification

23 years agoUpdated change log
Todd C. Miller [Sat, 15 Dec 2001 02:43:28 +0000 (02:43 +0000)]
Updated change log

23 years agoFix CIDR handling here too.
Todd C. Miller [Sat, 15 Dec 2001 02:27:17 +0000 (02:27 +0000)]
Fix CIDR handling here too.

23 years agoApparently a NULL response is OK
Todd C. Miller [Sat, 15 Dec 2001 02:21:53 +0000 (02:21 +0000)]
Apparently a NULL response is OK

23 years agoCheckpoint for upcoming beta release
Todd C. Miller [Sat, 15 Dec 2001 02:19:28 +0000 (02:19 +0000)]
Checkpoint for upcoming beta release

23 years agoMany people believe that adding a runas spec should obviate the need
Todd C. Miller [Sat, 15 Dec 2001 02:17:14 +0000 (02:17 +0000)]
Many people believe that adding a runas spec should obviate the need
for the -u flag.  It does not.

23 years agocheckpoint update for upcoming 1.6.4 beta
Todd C. Miller [Sat, 15 Dec 2001 02:11:03 +0000 (02:11 +0000)]
checkpoint update for upcoming 1.6.4 beta

23 years agoo Add HAVE_STDLIB_H and HAVE_MEMORY_H
Todd C. Miller [Sat, 15 Dec 2001 01:44:10 +0000 (01:44 +0000)]
o Add HAVE_STDLIB_H and HAVE_MEMORY_H
o Define HAVE_STRINGS_H even if HAVE_STRING_H is defined -- this is safe now

23 years agoAdd signals section
Todd C. Miller [Sat, 15 Dec 2001 01:07:13 +0000 (01:07 +0000)]
Add signals section

23 years agoregen
Todd C. Miller [Sat, 15 Dec 2001 01:00:45 +0000 (01:00 +0000)]
regen

23 years agoFix check for sigaction_t
Todd C. Miller [Sat, 15 Dec 2001 01:00:38 +0000 (01:00 +0000)]
Fix check for sigaction_t

23 years agoXXX - should call find_path() as runas user, not root. Can't do
Todd C. Miller [Sat, 15 Dec 2001 00:45:13 +0000 (00:45 +0000)]
XXX - should call find_path() as runas user, not root.  Can't do
that until the parser changes though.

23 years agoIf find_path() fails as root, try again as the invoking user (useful
Todd C. Miller [Sat, 15 Dec 2001 00:38:06 +0000 (00:38 +0000)]
If find_path() fails as root, try again as the invoking user (useful
for NFS).  Idea from Chip Capelik.

23 years agoRegenerate after pod file changes
Todd C. Miller [Sat, 15 Dec 2001 00:28:34 +0000 (00:28 +0000)]
Regenerate after pod file changes

23 years agoAdd new sudoers option "preserve_groups". Previously sudo would not
Todd C. Miller [Sat, 15 Dec 2001 00:24:27 +0000 (00:24 +0000)]
Add new sudoers option "preserve_groups".  Previously sudo would not
call initgroups() if the target user was root.  Now it always calls
initgroups() unless the -P command line option or the "preserve_groups"
sudoers option is set.  Idea from TJ Saunders.

23 years agoUse new HAVE_SIGACTION_T define
Todd C. Miller [Fri, 14 Dec 2001 23:38:31 +0000 (23:38 +0000)]
Use new HAVE_SIGACTION_T define

23 years agoFix compilation on K&C
Todd C. Miller [Fri, 14 Dec 2001 23:33:38 +0000 (23:33 +0000)]
Fix compilation on K&C

23 years agoregen
Todd C. Miller [Fri, 14 Dec 2001 23:14:47 +0000 (23:14 +0000)]
regen

23 years agoAdd check for sigaction_t -- IRIX already defines this so don't redefine it.
Todd C. Miller [Fri, 14 Dec 2001 23:14:36 +0000 (23:14 +0000)]
Add check for sigaction_t -- IRIX already defines this so don't redefine it.

23 years agofix typo
Todd C. Miller [Fri, 14 Dec 2001 22:15:56 +0000 (22:15 +0000)]
fix typo

23 years agoneed stdlib.h here too
Todd C. Miller [Fri, 14 Dec 2001 22:12:39 +0000 (22:12 +0000)]
need stdlib.h here too

23 years agoregen
Todd C. Miller [Fri, 14 Dec 2001 20:31:33 +0000 (20:31 +0000)]
regen

23 years agoRemove redundant checks for string.h, strings.h and unistd.h
Todd C. Miller [Fri, 14 Dec 2001 20:31:27 +0000 (20:31 +0000)]
Remove redundant checks for string.h, strings.h and unistd.h

23 years agoRegen from pod files
Todd C. Miller [Fri, 14 Dec 2001 20:29:19 +0000 (20:29 +0000)]
Regen from pod files

23 years agoUpdate for 1.6.4
Todd C. Miller [Fri, 14 Dec 2001 20:03:49 +0000 (20:03 +0000)]
Update for 1.6.4

23 years agoregen
Todd C. Miller [Fri, 14 Dec 2001 19:59:57 +0000 (19:59 +0000)]
regen

23 years agoReturn EINVAL if errnum > sys_nerr
Todd C. Miller [Fri, 14 Dec 2001 19:56:48 +0000 (19:56 +0000)]
Return EINVAL if errnum > sys_nerr

23 years agoo Update copyright year
Todd C. Miller [Fri, 14 Dec 2001 19:55:01 +0000 (19:55 +0000)]
o Update copyright year

23 years agoo Update copyright year
Todd C. Miller [Fri, 14 Dec 2001 19:54:56 +0000 (19:54 +0000)]
o Update copyright year

23 years agoo Don't define STDC_HEADERS unconditionally for IRIX
Todd C. Miller [Fri, 14 Dec 2001 19:54:09 +0000 (19:54 +0000)]
o Don't define STDC_HEADERS unconditionally for IRIX
o Update copyright year

23 years agoupdate version
Todd C. Miller [Fri, 14 Dec 2001 19:53:23 +0000 (19:53 +0000)]
update version

23 years agoo Reorder some headers and use STDC_HEADERS define properly
Todd C. Miller [Fri, 14 Dec 2001 19:52:54 +0000 (19:52 +0000)]
o Reorder some headers and use STDC_HEADERS define properly
o Update copyright year

23 years agoo Reorder some headers and use STDC_HEADERS define properly
Todd C. Miller [Fri, 14 Dec 2001 19:52:48 +0000 (19:52 +0000)]
o Reorder some headers and use STDC_HEADERS define properly
o Update copyright year

23 years agoo Reorder some headers and use STDC_HEADERS define properly
Todd C. Miller [Fri, 14 Dec 2001 19:52:47 +0000 (19:52 +0000)]
o Reorder some headers and use STDC_HEADERS define properly
o Update copyright year

23 years agoo Reorder some headers and use STDC_HEADERS define properly
Todd C. Miller [Fri, 14 Dec 2001 19:52:47 +0000 (19:52 +0000)]
o Reorder some headers and use STDC_HEADERS define properly
o Update copyright year

23 years agoo Reorder some headers and use STDC_HEADERS define properly
Todd C. Miller [Fri, 14 Dec 2001 19:52:47 +0000 (19:52 +0000)]
o Reorder some headers and use STDC_HEADERS define properly
o Update copyright year

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

23 years agoflags set in signal handlers should be volatile sig_atomic_t
Todd C. Miller [Fri, 14 Dec 2001 06:53:25 +0000 (06:53 +0000)]
flags set in signal handlers should be volatile sig_atomic_t

23 years agoAdd checks for volatile and sig_atomic_t
Todd C. Miller [Fri, 14 Dec 2001 06:52:44 +0000 (06:52 +0000)]
Add checks for volatile and sig_atomic_t

23 years agoregen
Todd C. Miller [Fri, 14 Dec 2001 06:43:06 +0000 (06:43 +0000)]
regen

23 years agoRemove "secure_path" Defaults option since it cannot work with the
Todd C. Miller [Fri, 14 Dec 2001 06:40:03 +0000 (06:40 +0000)]
Remove "secure_path" Defaults option since it cannot work with the
existing parser.

23 years agoUnset "secure_path" if user_is_exempt()
Todd C. Miller [Fri, 14 Dec 2001 06:26:55 +0000 (06:26 +0000)]
Unset "secure_path" if user_is_exempt()

23 years agoo Remove assumption that PATH and TERM are not listed in env_keep
Todd C. Miller [Fri, 14 Dec 2001 06:24:26 +0000 (06:24 +0000)]
o Remove assumption that PATH and TERM are not listed in env_keep
o If no PATH is in the environment use a default value
o If TERM is not set in the non-reset case also give it a default
  value.

23 years ago_PATH_SENDMAIL -> _PATH_SUDO_SENDMAIL so --without-sendmail works on
Todd C. Miller [Fri, 14 Dec 2001 06:17:35 +0000 (06:17 +0000)]
_PATH_SENDMAIL -> _PATH_SUDO_SENDMAIL so --without-sendmail works on
systems that define  in paths.h

23 years agoAdd support for skeyaccess(3) if it is present in libskey.
Todd C. Miller [Fri, 14 Dec 2001 06:15:08 +0000 (06:15 +0000)]
Add support for skeyaccess(3) if it is present in libskey.

23 years agoOnly need to do 'lc = login_getclass(NULL)' if lc == NULL
Todd C. Miller [Thu, 13 Dec 2001 02:42:45 +0000 (02:42 +0000)]
Only need to do 'lc = login_getclass(NULL)' if lc == NULL

23 years ago'\\' is a perfectly legal character to have in a command line argument.
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.

23 years agoo Defer call to set_fqdn() until it is safe to use log_error()
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

23 years agoFix CIDR -> in_addr_t conversion.
Todd C. Miller [Thu, 13 Dec 2001 01:07:25 +0000 (01:07 +0000)]
Fix CIDR -> in_addr_t conversion.

23 years agoRemove an extra "User_List" in the User_Spec definition
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

23 years agoMake 'listpw=never' work for users who are not explicitly mentioned in
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.

23 years agoRemove gratuitous '=' in EBNF grammar; era AT iki.fi
Todd C. Miller [Wed, 12 Dec 2001 20:40:12 +0000 (20:40 +0000)]
Remove gratuitous '=' in EBNF grammar; era AT iki.fi

23 years agoDocument new list Defaults type and convert env_keep and env_delete
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.

23 years agoregen parser
Todd C. Miller [Wed, 12 Dec 2001 20:11:47 +0000 (20:11 +0000)]
regen parser

23 years agoDon't let '#' appear in a {WORD} and restrict #foo in a Runas spec to #[0-9-]+.
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-]+.

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

23 years agoSimpler SUDO_FUNC_ISBLANK that uses AC_TRY_LINK
Todd C. Miller [Wed, 12 Dec 2001 19:55:25 +0000 (19:55 +0000)]
Simpler SUDO_FUNC_ISBLANK that uses AC_TRY_LINK

23 years agoAdd check for skeyaccess(3)
Todd C. Miller [Wed, 12 Dec 2001 19:43:23 +0000 (19:43 +0000)]
Add check for skeyaccess(3)

23 years agoDocument new -c, -f, and -q options
Todd C. Miller [Wed, 12 Dec 2001 00:47:49 +0000 (00:47 +0000)]
Document new -c, -f, and -q options

23 years agoo Add -f option (alternate sudoers file)
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)

23 years agoregen
Todd C. Miller [Wed, 12 Dec 2001 00:31:16 +0000 (00:31 +0000)]
regen

23 years agoAdd check for isblank and a replacement macro if it doesn't exist.
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.

23 years agoIn check-only mode, don't create sudoers if it does not already 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.

23 years ago o Add a new token, DEFVAR, to indicate a Defaults variable name
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.

23 years ago o Use exclusive start conditions to remove some ambiguity in the
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.

23 years agoPrototype init_envtables()
Todd C. Miller [Tue, 11 Dec 2001 23:03:24 +0000 (23:03 +0000)]
Prototype init_envtables()

23 years ago o Convert environment handling to use lists instead of strings.
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).

23 years ago o Add a new LIST type and functions to manipulate it.
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.

23 years agoConvert environment options to use the new LIST type and add a new one,
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.

23 years agoAdd dummy version of init_envtables()
Todd C. Miller [Tue, 11 Dec 2001 22:55:23 +0000 (22:55 +0000)]
Add dummy version of init_envtables()

23 years agohonor quiet mode
Todd C. Miller [Tue, 11 Dec 2001 22:53:39 +0000 (22:53 +0000)]
honor quiet mode

23 years agoAdd check-only mode
Todd C. Miller [Tue, 11 Dec 2001 22:51:17 +0000 (22:51 +0000)]
Add check-only mode

23 years agoFix generation of entries with NULL descriptions.
Todd C. Miller [Tue, 11 Dec 2001 01:27:42 +0000 (01:27 +0000)]
Fix generation of entries with NULL descriptions.

23 years agoUse sigaction_t and quiet a gcc warning.
Todd C. Miller [Sun, 9 Dec 2001 05:27:11 +0000 (05:27 +0000)]
Use sigaction_t and quiet a gcc warning.

23 years agoMust reset signal handlers before we exec
Todd C. Miller [Sun, 9 Dec 2001 05:20:34 +0000 (05:20 +0000)]
Must reset signal handlers before we exec

23 years agoBe carefule now that tgetpass() can return NULL (user hit ^C).
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.

23 years agoAdd support for interrupting/suspending tgetpass via keyboard input.
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.

23 years agoDon't block keyboard interrupt signals, just set them to SIG_IGN.
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.

23 years agoadd back HAVE_SIGACTION
Todd C. Miller [Sat, 8 Dec 2001 19:48:03 +0000 (19:48 +0000)]
add back HAVE_SIGACTION

23 years agoregen
Todd C. Miller [Sat, 8 Dec 2001 19:44:55 +0000 (19:44 +0000)]
regen

23 years agoKill POSIX_SIGNALS define and old signal support now that we emulate POSIX ones
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.

23 years agoDon't need config.h or "#ifndef HAVE_STRERROR" wrapper.
Todd C. Miller [Sat, 8 Dec 2001 19:42:32 +0000 (19:42 +0000)]
Don't need config.h or "#ifndef HAVE_STRERROR" wrapper.

23 years agoAdd scaffolding for POSIX signal emulation
Todd C. Miller [Sat, 8 Dec 2001 19:39:28 +0000 (19:39 +0000)]
Add scaffolding for POSIX signal emulation

23 years agoo Add missing ';' so this compiles
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

23 years agoEmulate sigaction() using sigvec()
Todd C. Miller [Sat, 8 Dec 2001 19:23:11 +0000 (19:23 +0000)]
Emulate sigaction() using sigvec()

23 years agoDocument new behavior of negative values of timestamp_timeout
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

23 years agoAdd security note about command not being logged after 'sudo su' and
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.

23 years agoMention that -V prints default values when run as root, including
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.

23 years agoRun pod2man with --quotes=none to avoid stupid quoting of C<> entries.
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.

23 years agoAdd mail_badpass option
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

23 years agoDump default bad env table when 'sudo -V' is run by root.
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.

23 years agodocument env_delete
Todd C. Miller [Mon, 12 Nov 2001 04:52:23 +0000 (04:52 +0000)]
document env_delete

23 years agoAdd support for '*' in env_keep when not resetting the environment
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).