]> granicus.if.org Git - sudo/log
sudo
25 years agomake PASSWORD_NOT_CORRECT logging consistent with other modules
Todd C. Miller [Wed, 7 Jul 1999 18:08:22 +0000 (18:08 +0000)]
make PASSWORD_NOT_CORRECT logging consistent with other modules

25 years agoPAM prompt code was wrong, looks like we have to kludge it after all.
Todd C. Miller [Mon, 5 Jul 1999 20:53:54 +0000 (20:53 +0000)]
PAM prompt code was wrong, looks like we have to kludge it after all.

25 years agoIn the PAM code, when a user hits return at the first password prompt, exit without...
Todd C. Miller [Mon, 5 Jul 1999 20:35:30 +0000 (20:35 +0000)]
In the PAM code, when a user hits return at the first password prompt, exit without a warning just like the normal auth code

25 years agokludge around cross-compiler false positives
Todd C. Miller [Mon, 5 Jul 1999 20:15:44 +0000 (20:15 +0000)]
kludge around cross-compiler false positives

25 years agoNew (correct) PAM code
Todd C. Miller [Mon, 5 Jul 1999 20:14:21 +0000 (20:14 +0000)]
New (correct) PAM code
Tgetpass now takes an echo flag for use with PAM_PROMPT_ECHO_ON
Block SIGINT and SIGTSTP during auth
remove a useless umask setting
Change error from BAD_ALLOCATION -> BAD_AUTH_INIT (for use with sia/PAM)
Some cosmetic changes to auth.c for consistency

25 years agoSome -Wall and kill some trailing spaces
Todd C. Miller [Mon, 5 Jul 1999 20:11:50 +0000 (20:11 +0000)]
Some -Wall and kill some trailing spaces

25 years agodefine -D__EXTENSIONS__ for solaris so we get crypt() proto
Todd C. Miller [Mon, 5 Jul 1999 20:10:21 +0000 (20:10 +0000)]
define -D__EXTENSIONS__ for solaris so we get crypt() proto

25 years agoadd Dynix 4.4.4
Todd C. Miller [Tue, 22 Jun 1999 13:42:30 +0000 (13:42 +0000)]
add Dynix 4.4.4

25 years agofor kerberos V < version, fall back on old kerb4 auth code
Todd C. Miller [Tue, 22 Jun 1999 13:30:25 +0000 (13:30 +0000)]
for kerberos V < version, fall back on old kerb4 auth code

25 years agoclarify some things
Todd C. Miller [Tue, 22 Jun 1999 10:41:02 +0000 (10:41 +0000)]
clarify some things

25 years agotypos
Todd C. Miller [Tue, 22 Jun 1999 10:38:39 +0000 (10:38 +0000)]
typos

25 years agomention why DONT_LEAK_PATH_INFO is not the default
Todd C. Miller [Mon, 14 Jun 1999 23:47:56 +0000 (23:47 +0000)]
mention why DONT_LEAK_PATH_INFO is not the default

25 years agoFix open(2) return value checking, was NULL for fopen, should be -1 for open
Todd C. Miller [Thu, 3 Jun 1999 16:34:10 +0000 (16:34 +0000)]
Fix open(2) return value checking, was NULL for fopen, should be -1 for open

25 years agoregen
Todd C. Miller [Thu, 3 Jun 1999 16:06:20 +0000 (16:06 +0000)]
regen

25 years agobetter wording for solaris pam notice
Todd C. Miller [Thu, 3 Jun 1999 16:06:02 +0000 (16:06 +0000)]
better wording for solaris pam notice

25 years agodocument recent changes
Todd C. Miller [Thu, 3 Jun 1999 15:52:40 +0000 (15:52 +0000)]
document recent changes

25 years agoUpdate shadow password section
Todd C. Miller [Thu, 3 Jun 1999 15:52:18 +0000 (15:52 +0000)]
Update shadow password section

25 years agomove authentication code from check.c to auth.c
Todd C. Miller [Thu, 3 Jun 1999 15:51:44 +0000 (15:51 +0000)]
move authentication code from check.c to auth.c

25 years agomove authentication code to auth.c
Todd C. Miller [Thu, 3 Jun 1999 15:51:07 +0000 (15:51 +0000)]
move authentication code to auth.c

25 years agoMove interface-related defines to interfaces.h so we don't have to include
Todd C. Miller [Mon, 17 May 1999 01:36:30 +0000 (01:36 +0000)]
Move interface-related defines to interfaces.h so we don't have to include
<netinet/in.h> everywhere.

25 years ago o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
Todd C. Miller [Fri, 14 May 1999 16:30:14 +0000 (16:30 +0000)]
 o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
   It turns out the old DES crypt does the right thing with passwords
   longert than 8 characters.
 o Fix common typo (necesary -> necessary)
 o Update TODO list

25 years agoset $LOGNAME when we set $USER
Todd C. Miller [Mon, 3 May 1999 16:00:32 +0000 (16:00 +0000)]
set $LOGNAME when we set $USER

25 years agoadd comment about digital unix and interfaces.c warning with gcc
Todd C. Miller [Tue, 27 Apr 1999 04:00:11 +0000 (04:00 +0000)]
add comment about digital unix and interfaces.c warning with gcc

25 years agouse modern paths and give examples for some of the new parser features
Todd C. Miller [Thu, 15 Apr 1999 05:12:46 +0000 (05:12 +0000)]
use modern paths and give examples for some of the new parser features

25 years agofix comment
Todd C. Miller [Sat, 10 Apr 1999 17:03:32 +0000 (17:03 +0000)]
fix comment

25 years agoFunction names should be flush with the start of the line so they can be found trivia...
Todd C. Miller [Sat, 10 Apr 1999 04:49:03 +0000 (04:49 +0000)]
Function names should be flush with the start of the line so they can be found trivially in an editor and with grep

25 years agofree(3) is already void, no need to cast it
Todd C. Miller [Sat, 10 Apr 1999 04:40:57 +0000 (04:40 +0000)]
free(3) is already void, no need to cast it

25 years agocatch case where cmnd_safe is not set (this should not be possible)
Todd C. Miller [Sat, 10 Apr 1999 04:37:35 +0000 (04:37 +0000)]
catch case where cmnd_safe is not set (this should not be possible)

25 years agoStash the "safe" path (ie: the one listed in sudoers) to the command instead
Todd C. Miller [Sat, 10 Apr 1999 04:10:01 +0000 (04:10 +0000)]
Stash the "safe" path (ie: the one listed in sudoers) to the command instead
of stashing the struct stat.  Should be safer.

25 years agonotes on updating from an earlier release
Todd C. Miller [Thu, 8 Apr 1999 23:56:13 +0000 (23:56 +0000)]
notes on updating from an earlier release

25 years agoupdated
Todd C. Miller [Thu, 8 Apr 1999 00:20:03 +0000 (00:20 +0000)]
updated

25 years agoYou can now specifiy a host list instead of just a host or alias.
Todd C. Miller [Wed, 7 Apr 1999 23:18:52 +0000 (23:18 +0000)]
You can now specifiy a host list instead of just a host or alias.
Ie: user = host1,host2,ALIAS,!host3 my_command
now works.

25 years agoQuiet -Wall
Todd C. Miller [Wed, 7 Apr 1999 06:59:59 +0000 (06:59 +0000)]
Quiet -Wall

25 years agoMove the push from the beginning of cmndspec to the end. This means we
Todd C. Miller [Wed, 7 Apr 1999 06:50:47 +0000 (06:50 +0000)]
Move the push from the beginning of cmndspec to the end.  This means we
no longer have to do a push at the end of privilege, just reset some values.

25 years agorunas-lists and NOPASSWD/PASSWD modifiers are now sticky and you can use "!" most...
Todd C. Miller [Wed, 7 Apr 1999 00:24:36 +0000 (00:24 +0000)]
runas-lists and NOPASSWD/PASSWD modifiers are now sticky and you can use "!" most everywhere

25 years agomodernize paths and update su example based on sample.sudoers one
Todd C. Miller [Tue, 6 Apr 1999 18:12:08 +0000 (18:12 +0000)]
modernize paths and update su example based on sample.sudoers one

25 years agoNew runas semantics
Todd C. Miller [Tue, 6 Apr 1999 18:06:12 +0000 (18:06 +0000)]
New runas semantics

25 years agoIn estrdup(), do the malloc ourselves so we don't need to rely on the
Todd C. Miller [Tue, 6 Apr 1999 17:55:01 +0000 (17:55 +0000)]
In estrdup(), do the malloc ourselves so we don't need to rely on the
system strdup(3) which may or may not exist.  There is now no need to
provide strdup() for those w/o it.  Also, the prototype for estrdup()
was wrong, it returns char * and its param is const.

25 years ago$Sudo tag
Todd C. Miller [Tue, 6 Apr 1999 17:40:49 +0000 (17:40 +0000)]
$Sudo tag

25 years agobuf should be prompt; Michael Robokoff <mrobo@networkcs.com>
Todd C. Miller [Tue, 6 Apr 1999 17:20:39 +0000 (17:20 +0000)]
buf should be prompt; Michael Robokoff <mrobo@networkcs.com>

25 years agoIt is now possible to use the '!' operator in a runas list as
Todd C. Miller [Tue, 6 Apr 1999 05:40:51 +0000 (05:40 +0000)]
It is now possible to use the '!' operator in a runas list as
well as in a Cmnd_Alias, Host_Alias and User_Alias.

25 years agoKill GLOBAL_NO_SPW_ENT (not used) and crank GLOBAL_PROBLEM
Todd C. Miller [Tue, 6 Apr 1999 05:38:59 +0000 (05:38 +0000)]
Kill GLOBAL_NO_SPW_ENT (not used) and crank GLOBAL_PROBLEM

25 years agoDefinitions of *_matched were wrong--user top, not top-2 as subscript.
Todd C. Miller [Tue, 6 Apr 1999 05:08:40 +0000 (05:08 +0000)]
Definitions of *_matched were wrong--user top, not top-2 as subscript.

25 years agoAdd VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command
Todd C. Miller [Tue, 6 Apr 1999 05:00:29 +0000 (05:00 +0000)]
Add VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command
but the NOPASSWD flag was set.
Make runasspec, runaslist, runasuser, and nopasswd typeless in parse.yacc
Add support for '!' in the runas list
Fix double printing of '%' and '+' for groups and netgroups respectively
Add *_matched macros (no need for local stack variable).  Should only be
used directly after a pop (since top must be >= 2).

25 years agoAdd copyright, somewhat silly
Todd C. Miller [Tue, 6 Apr 1999 03:25:46 +0000 (03:25 +0000)]
Add copyright, somewhat silly

25 years agoCrank version to 1.6 and combine copyright statements
Todd C. Miller [Mon, 5 Apr 1999 20:57:25 +0000 (20:57 +0000)]
Crank version to 1.6 and combine copyright statements

25 years agoUse ! not ^ to do negation
Todd C. Miller [Mon, 5 Apr 1999 20:30:15 +0000 (20:30 +0000)]
Use ! not ^ to do negation

25 years agoregen
Todd C. Miller [Mon, 5 Apr 1999 20:29:54 +0000 (20:29 +0000)]
regen

25 years agoMake runas and NOPASSWD tags persistent across entris in a command list.
Todd C. Miller [Mon, 5 Apr 1999 20:28:16 +0000 (20:28 +0000)]
Make runas and NOPASSWD tags persistent across entris in a command list.
Add a PASSWD tag to reverse NOPASSWD.  When you override a runas or *PASSWD
tag the value given becomes the new default for the rest of the command list.

25 years agoupdate for 1.5.9 SUDO_1_5_9
Todd C. Miller [Fri, 2 Apr 1999 21:03:17 +0000 (21:03 +0000)]
update for 1.5.9

25 years agoShift return value of system(3) by 8 to get real exit value and if it is not 1 or...
Todd C. Miller [Fri, 2 Apr 1999 21:02:57 +0000 (21:02 +0000)]
Shift return value of system(3) by 8 to get real exit value and if it is not 1 or 0 print the retval along with the error message.

25 years agotestsudoers needs LIBOBJS too
Todd C. Miller [Tue, 30 Mar 1999 21:45:27 +0000 (21:45 +0000)]
testsudoers needs LIBOBJS too

25 years agoFix another parser bug. For a sudoers entry like this:
Todd C. Miller [Tue, 30 Mar 1999 17:17:54 +0000 (17:17 +0000)]
Fix another parser bug.  For a sudoers entry like this:
    millert ALL=/bin/ls,(daemon) !/bin/ls
sudo would not allow millert to run ls as root.

25 years agonew change
Todd C. Miller [Tue, 30 Mar 1999 06:08:42 +0000 (06:08 +0000)]
new change

25 years agoSave entries that match a ! command on the matching stack too
Todd C. Miller [Tue, 30 Mar 1999 06:03:38 +0000 (06:03 +0000)]
Save entries that match a ! command on the matching stack too

25 years agoMake sudo's usage info better when mutually exclusive args are given and don't rely...
Todd C. Miller [Tue, 30 Mar 1999 06:01:46 +0000 (06:01 +0000)]
Make sudo's usage info better when mutually exclusive args are given and don't rely on argument order to detect this; nick@zeta.org.au

25 years agoupdates from CU
Todd C. Miller [Mon, 29 Mar 1999 20:03:02 +0000 (20:03 +0000)]
updates from CU

25 years agouse gzip
Todd C. Miller [Mon, 29 Mar 1999 04:38:06 +0000 (04:38 +0000)]
use gzip

25 years agoFix off by one error introduced in *alloc changes
Todd C. Miller [Mon, 29 Mar 1999 04:31:16 +0000 (04:31 +0000)]
Fix off by one error introduced in *alloc changes

25 years ago++version
Todd C. Miller [Mon, 29 Mar 1999 04:05:15 +0000 (04:05 +0000)]
++version

25 years agoUse emalloc/erealloc/estrdup
Todd C. Miller [Mon, 29 Mar 1999 02:59:34 +0000 (02:59 +0000)]
Use emalloc/erealloc/estrdup

25 years agoerror checking memory allocation routines
Todd C. Miller [Mon, 29 Mar 1999 01:29:02 +0000 (01:29 +0000)]
error checking memory allocation routines

25 years agoStill not right, this fixes it for real
Todd C. Miller [Mon, 29 Mar 1999 00:23:49 +0000 (00:23 +0000)]
Still not right, this fixes it for real

25 years agoFix for previous commit
Todd C. Miller [Mon, 29 Mar 1999 00:08:02 +0000 (00:08 +0000)]
Fix for previous commit

25 years agoFix a parser bug that was exposed when mixing different runas specs
Todd C. Miller [Mon, 29 Mar 1999 00:05:15 +0000 (00:05 +0000)]
Fix a parser bug that was exposed when mixing different runas specs
and ! commands.  For example:
    millert        ALL=(daemon) /usr/bin/whoami,!/bin/ls
would allow millert to run whoami as root as well as daemon when it should
just allow daemon.  The problem was that comma-separated commands in
a list shared the same entry on the matching stack.  Now they get
their own entry iff there is a full match.  It may be better to just make
the runas spec persistent across all commands in a list like the user
and host entries of the matching stack.  However, since that is a
fairly major change it should gets its own minor rev increase.

25 years agoSimplify PAM code and fix a PAM-related warning on Linux
Todd C. Miller [Sun, 28 Mar 1999 18:50:25 +0000 (18:50 +0000)]
Simplify PAM code and fix a PAM-related warning on Linux

25 years agoupdates
Todd C. Miller [Fri, 26 Mar 1999 18:17:43 +0000 (18:17 +0000)]
updates

25 years agobetter su entry
Todd C. Miller [Fri, 26 Mar 1999 18:12:22 +0000 (18:12 +0000)]
better su entry

25 years agoregen
Todd C. Miller [Fri, 26 Mar 1999 18:10:25 +0000 (18:10 +0000)]
regen

25 years agonew pam code that works on solaris, should work on linux too; aelberg@home.com
Todd C. Miller [Fri, 26 Mar 1999 18:09:09 +0000 (18:09 +0000)]
new pam code that works on solaris, should work on linux too; aelberg@home.com

25 years agomore entries
Todd C. Miller [Fri, 19 Mar 1999 19:44:46 +0000 (19:44 +0000)]
more entries

25 years agoonly include strings.h if there is no string.h
Todd C. Miller [Fri, 19 Mar 1999 19:43:28 +0000 (19:43 +0000)]
only include strings.h if there is no string.h

25 years agoSinix is now being called ReliantUNIX; bjjackso@us.oracle.com
Todd C. Miller [Wed, 17 Mar 1999 20:25:39 +0000 (20:25 +0000)]
Sinix is now being called ReliantUNIX; bjjackso@us.oracle.com

25 years agoshost must be set before log functions are called #ifdef HOST_IN_LOG
Todd C. Miller [Sat, 13 Mar 1999 18:37:57 +0000 (18:37 +0000)]
shost must be set before log functions are called #ifdef HOST_IN_LOG

25 years agoFix a bug wrt quoting characters in command args. Stop processing an arg when you...
Todd C. Miller [Sun, 7 Mar 1999 23:34:31 +0000 (23:34 +0000)]
Fix a bug wrt quoting characters in command args.  Stop processing an arg when you hit a backslash so the quoted-character detection can catch it.

26 years agoinclude sys/time.h; aparently AIX needs it. ppz@cdu.elektra.ru
Todd C. Miller [Fri, 26 Feb 1999 06:19:49 +0000 (06:19 +0000)]
include sys/time.h; aparently AIX needs it.  ppz@cdu.elektra.ru

26 years agoadd missing case statement so --without-sendmail works
Todd C. Miller [Wed, 24 Feb 1999 00:43:51 +0000 (00:43 +0000)]
add missing case statement so --without-sendmail works

26 years agomore
Todd C. Miller [Tue, 23 Feb 1999 02:51:43 +0000 (02:51 +0000)]
more

26 years agoonly search for -lsun in irix <= 4.x
Todd C. Miller [Mon, 22 Feb 1999 20:10:51 +0000 (20:10 +0000)]
only search for -lsun in irix <= 4.x

26 years agoback out last configure.in change now that I've hacked autoconf to fix the real probl...
Todd C. Miller [Mon, 22 Feb 1999 20:01:47 +0000 (20:01 +0000)]
back out last configure.in change now that I've hacked autoconf to fix the real problem and add a missing newline

26 years agoupdated
Todd C. Miller [Mon, 22 Feb 1999 19:32:43 +0000 (19:32 +0000)]
updated

26 years agoadd def of dirfd() for those without it
Todd C. Miller [Mon, 22 Feb 1999 19:05:06 +0000 (19:05 +0000)]
add def of dirfd() for those without it

26 years agoWhen falling back to checking for socket() when linking with "-lsocket -lnsl" check...
Todd C. Miller [Mon, 22 Feb 1999 15:58:11 +0000 (15:58 +0000)]
When falling back to checking for socket() when linking with "-lsocket -lnsl" check for main() instead since autoconf has already cached the results of checking for socket() in -lsocket.  This is really an autoconf bug as it should use the extra libs as part of the cache variable name.

26 years agotypo
Todd C. Miller [Mon, 22 Feb 1999 15:47:44 +0000 (15:47 +0000)]
typo

26 years agofix occurrence of $with_timeout that should be $with_password_timeout; Michael.Neef...
Todd C. Miller [Sun, 21 Feb 1999 20:18:29 +0000 (20:18 +0000)]
fix occurrence of $with_timeout that should be $with_password_timeout; Michael.Neef@neuroinformatik.ruhr-uni-bochum.de

26 years agofix grammar; espie@openbsd.org SUDO_1_5_8
Todd C. Miller [Wed, 17 Feb 1999 16:40:55 +0000 (16:40 +0000)]
fix grammar; espie@openbsd.org

26 years agoadd cast for strdup in places it does not have it
Todd C. Miller [Thu, 11 Feb 1999 06:41:32 +0000 (06:41 +0000)]
add cast for strdup in places it does not have it

26 years agodefine for_BSD_TYPES irix
Todd C. Miller [Tue, 9 Feb 1999 18:11:51 +0000 (18:11 +0000)]
define for_BSD_TYPES irix

26 years agoMake it clear that it is the user's password, not root's, that we want.
Todd C. Miller [Sun, 7 Feb 1999 00:47:32 +0000 (00:47 +0000)]
Make it clear that it is the user's password, not root's, that we want.

26 years agoIf the user enters an empty password and really has no password, accept
Todd C. Miller [Sun, 7 Feb 1999 00:43:24 +0000 (00:43 +0000)]
If the user enters an empty password and really has no password, accept
the empty password they entered.  Perviously, they could enter anything
*but* an empty password.  Also, add GETPASS macro that calls either
tgetpass() or getpass() depending on how sudo was configured.
Problem noted by jdg@maths.qmw.ac.uk

26 years agoadd explicate copyright
Todd C. Miller [Wed, 3 Feb 1999 04:32:19 +0000 (04:32 +0000)]
add explicate copyright

26 years agomention -lsocket, -lnsl configure changes
Todd C. Miller [Wed, 3 Feb 1999 04:16:21 +0000 (04:16 +0000)]
mention -lsocket, -lnsl configure changes

26 years agoDon't clobber errno after calling check_sudoers().
Todd C. Miller [Tue, 2 Feb 1999 22:54:04 +0000 (22:54 +0000)]
Don't clobber errno after calling check_sudoers().

26 years agoWhen linking with both -lsocket and -lnsl be sure to do so in that order. Also,...
Todd C. Miller [Mon, 1 Feb 1999 00:46:13 +0000 (00:46 +0000)]
When linking with both -lsocket and -lnsl be sure to do so in that order.  Also, when we can't find socket() or inet_addr() and have to try linking with both libs, issue a warning.

26 years agoclarify bad timestamp and fmt
Todd C. Miller [Mon, 1 Feb 1999 00:45:02 +0000 (00:45 +0000)]
clarify bad timestamp and fmt

26 years agobe clear that pam is linux-only and add a RUNSON entry
Todd C. Miller [Sat, 23 Jan 1999 17:18:28 +0000 (17:18 +0000)]
be clear that pam is linux-only and add a RUNSON entry

26 years agofix and correctly document --with-umask; problem noted by adap@adap.org
Todd C. Miller [Fri, 22 Jan 1999 18:13:16 +0000 (18:13 +0000)]
fix and correctly document --with-umask; problem noted by adap@adap.org

26 years agoonly use /usr/{man,catman}/local to store man pages if suer didn't override prefix...
Todd C. Miller [Wed, 20 Jan 1999 01:38:25 +0000 (01:38 +0000)]
only use /usr/{man,catman}/local to store man pages if suer didn't override prefix or mandir

26 years agofix typo, make --with-SecurID take an arg
Todd C. Miller [Wed, 20 Jan 1999 01:24:41 +0000 (01:24 +0000)]
fix typo, make --with-SecurID take an arg

26 years agoupdates from users
Todd C. Miller [Tue, 19 Jan 1999 02:53:30 +0000 (02:53 +0000)]
updates from users