]>
granicus.if.org Git - sudo/log
Todd C. Miller [Thu, 8 Jul 1999 10:46:46 +0000 (10:46 +0000)]
regen
Todd C. Miller [Thu, 8 Jul 1999 10:46:28 +0000 (10:46 +0000)]
only save an entry if user_matches && host_matches, even if the stack is empty (fix for previous commit)
Todd C. Miller [Thu, 8 Jul 1999 10:35:58 +0000 (10:35 +0000)]
regen
Todd C. Miller [Thu, 8 Jul 1999 10:35:28 +0000 (10:35 +0000)]
1) Always save an entry on the stack if it is empty. This fixes the
-l and -v flags that were broken by earlier parser changes.
2) In a Runas list, don't negate FALSE -> TRUE since that would make !foo
match any time the user specified a runas user (via -u) other than foo.
Todd C. Miller [Thu, 8 Jul 1999 09:45:16 +0000 (09:45 +0000)]
interfaces and num_interfaces are now auto, not extern
Todd C. Miller [Wed, 7 Jul 1999 18:09:00 +0000 (18:09 +0000)]
use a static global to keep stae about empty passwords
Todd C. Miller [Wed, 7 Jul 1999 18:08:22 +0000 (18:08 +0000)]
make PASSWORD_NOT_CORRECT logging consistent with other modules
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.
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
Todd C. Miller [Mon, 5 Jul 1999 20:15:44 +0000 (20:15 +0000)]
kludge around cross-compiler false positives
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
Todd C. Miller [Mon, 5 Jul 1999 20:11:50 +0000 (20:11 +0000)]
Some -Wall and kill some trailing spaces
Todd C. Miller [Mon, 5 Jul 1999 20:10:21 +0000 (20:10 +0000)]
define -D__EXTENSIONS__ for solaris so we get crypt() proto
Todd C. Miller [Tue, 22 Jun 1999 13:42:30 +0000 (13:42 +0000)]
add Dynix 4.4.4
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
Todd C. Miller [Tue, 22 Jun 1999 10:41:02 +0000 (10:41 +0000)]
clarify some things
Todd C. Miller [Tue, 22 Jun 1999 10:38:39 +0000 (10:38 +0000)]
typos
Todd C. Miller [Mon, 14 Jun 1999 23:47:56 +0000 (23:47 +0000)]
mention why DONT_LEAK_PATH_INFO is not the default
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
Todd C. Miller [Thu, 3 Jun 1999 16:06:20 +0000 (16:06 +0000)]
regen
Todd C. Miller [Thu, 3 Jun 1999 16:06:02 +0000 (16:06 +0000)]
better wording for solaris pam notice
Todd C. Miller [Thu, 3 Jun 1999 15:52:40 +0000 (15:52 +0000)]
document recent changes
Todd C. Miller [Thu, 3 Jun 1999 15:52:18 +0000 (15:52 +0000)]
Update shadow password section
Todd C. Miller [Thu, 3 Jun 1999 15:51:44 +0000 (15:51 +0000)]
move authentication code from check.c to auth.c
Todd C. Miller [Thu, 3 Jun 1999 15:51:07 +0000 (15:51 +0000)]
move authentication code to auth.c
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.
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
Todd C. Miller [Mon, 3 May 1999 16:00:32 +0000 (16:00 +0000)]
set $LOGNAME when we set $USER
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
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
Todd C. Miller [Sat, 10 Apr 1999 17:03:32 +0000 (17:03 +0000)]
fix comment
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
Todd C. Miller [Sat, 10 Apr 1999 04:40:57 +0000 (04:40 +0000)]
free(3) is already void, no need to cast it
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)
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.
Todd C. Miller [Thu, 8 Apr 1999 23:56:13 +0000 (23:56 +0000)]
notes on updating from an earlier release
Todd C. Miller [Thu, 8 Apr 1999 00:20:03 +0000 (00:20 +0000)]
updated
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.
Todd C. Miller [Wed, 7 Apr 1999 06:59:59 +0000 (06:59 +0000)]
Quiet -Wall
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.
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
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
Todd C. Miller [Tue, 6 Apr 1999 18:06:12 +0000 (18:06 +0000)]
New runas semantics
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.
Todd C. Miller [Tue, 6 Apr 1999 17:40:49 +0000 (17:40 +0000)]
$Sudo tag
Todd C. Miller [Tue, 6 Apr 1999 17:20:39 +0000 (17:20 +0000)]
buf should be prompt; Michael Robokoff <mrobo@networkcs.com>
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.
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
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.
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).
Todd C. Miller [Tue, 6 Apr 1999 03:25:46 +0000 (03:25 +0000)]
Add copyright, somewhat silly
Todd C. Miller [Mon, 5 Apr 1999 20:57:25 +0000 (20:57 +0000)]
Crank version to 1.6 and combine copyright statements
Todd C. Miller [Mon, 5 Apr 1999 20:30:15 +0000 (20:30 +0000)]
Use ! not ^ to do negation
Todd C. Miller [Mon, 5 Apr 1999 20:29:54 +0000 (20:29 +0000)]
regen
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.
Todd C. Miller [Fri, 2 Apr 1999 21:03:17 +0000 (21:03 +0000)]
update for 1.5.9
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.
Todd C. Miller [Tue, 30 Mar 1999 21:45:27 +0000 (21:45 +0000)]
testsudoers needs LIBOBJS too
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.
Todd C. Miller [Tue, 30 Mar 1999 06:08:42 +0000 (06:08 +0000)]
new change
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
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
Todd C. Miller [Mon, 29 Mar 1999 20:03:02 +0000 (20:03 +0000)]
updates from CU
Todd C. Miller [Mon, 29 Mar 1999 04:38:06 +0000 (04:38 +0000)]
use gzip
Todd C. Miller [Mon, 29 Mar 1999 04:31:16 +0000 (04:31 +0000)]
Fix off by one error introduced in *alloc changes
Todd C. Miller [Mon, 29 Mar 1999 04:05:15 +0000 (04:05 +0000)]
++version
Todd C. Miller [Mon, 29 Mar 1999 02:59:34 +0000 (02:59 +0000)]
Use emalloc/erealloc/estrdup
Todd C. Miller [Mon, 29 Mar 1999 01:29:02 +0000 (01:29 +0000)]
error checking memory allocation routines
Todd C. Miller [Mon, 29 Mar 1999 00:23:49 +0000 (00:23 +0000)]
Still not right, this fixes it for real
Todd C. Miller [Mon, 29 Mar 1999 00:08:02 +0000 (00:08 +0000)]
Fix for previous commit
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.
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
Todd C. Miller [Fri, 26 Mar 1999 18:17:43 +0000 (18:17 +0000)]
updates
Todd C. Miller [Fri, 26 Mar 1999 18:12:22 +0000 (18:12 +0000)]
better su entry
Todd C. Miller [Fri, 26 Mar 1999 18:10:25 +0000 (18:10 +0000)]
regen
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
Todd C. Miller [Fri, 19 Mar 1999 19:44:46 +0000 (19:44 +0000)]
more entries
Todd C. Miller [Fri, 19 Mar 1999 19:43:28 +0000 (19:43 +0000)]
only include strings.h if there is no string.h
Todd C. Miller [Wed, 17 Mar 1999 20:25:39 +0000 (20:25 +0000)]
Sinix is now being called ReliantUNIX; bjjackso@us.oracle.com
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
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.
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
Todd C. Miller [Wed, 24 Feb 1999 00:43:51 +0000 (00:43 +0000)]
add missing case statement so --without-sendmail works
Todd C. Miller [Tue, 23 Feb 1999 02:51:43 +0000 (02:51 +0000)]
more
Todd C. Miller [Mon, 22 Feb 1999 20:10:51 +0000 (20:10 +0000)]
only search for -lsun in irix <= 4.x
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
Todd C. Miller [Mon, 22 Feb 1999 19:32:43 +0000 (19:32 +0000)]
updated
Todd C. Miller [Mon, 22 Feb 1999 19:05:06 +0000 (19:05 +0000)]
add def of dirfd() for those without it
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.
Todd C. Miller [Mon, 22 Feb 1999 15:47:44 +0000 (15:47 +0000)]
typo
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
Todd C. Miller [Wed, 17 Feb 1999 16:40:55 +0000 (16:40 +0000)]
fix grammar; espie@openbsd.org
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
Todd C. Miller [Tue, 9 Feb 1999 18:11:51 +0000 (18:11 +0000)]
define for_BSD_TYPES irix
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.
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
Todd C. Miller [Wed, 3 Feb 1999 04:32:19 +0000 (04:32 +0000)]
add explicate copyright
Todd C. Miller [Wed, 3 Feb 1999 04:16:21 +0000 (04:16 +0000)]
mention -lsocket, -lnsl configure changes
Todd C. Miller [Tue, 2 Feb 1999 22:54:04 +0000 (22:54 +0000)]
Don't clobber errno after calling check_sudoers().
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.