]>
granicus.if.org Git - sudo/log
Todd C. Miller [Thu, 22 Jul 1999 12:58:52 +0000 (12:58 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:58:39 +0000 (12:58 +0000)]
o BSD copyright
o no need to block signals, we now do that in main()
o cosmetic changes
Todd C. Miller [Thu, 22 Jul 1999 12:57:47 +0000 (12:57 +0000)]
o BSD-style copyright
o Use "struct sudo_user" instead of old globals.
o some cometic cleanup
Todd C. Miller [Thu, 22 Jul 1999 12:56:50 +0000 (12:56 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:56:28 +0000 (12:56 +0000)]
o BSD copyright
o logging and parser bits moved to their own .h files
o new "struct sudo_user" to encapsulate many of the old globals.
Todd C. Miller [Thu, 22 Jul 1999 12:55:17 +0000 (12:55 +0000)]
o no longer contains sudo 1.1/1.2 code
o BSD copyright
o use new logging routines
o simplified flow of control
o BIND resolver additions to badenv_table
Todd C. Miller [Thu, 22 Jul 1999 12:53:30 +0000 (12:53 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:53:20 +0000 (12:53 +0000)]
Now compiles on more K&R compilers
Todd C. Miller [Thu, 22 Jul 1999 12:52:23 +0000 (12:52 +0000)]
BSD-style copyright, cosmetic changes
Todd C. Miller [Thu, 22 Jul 1999 12:52:06 +0000 (12:52 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:51:18 +0000 (12:51 +0000)]
BSD-style copyright. Move parser-specific defines and structs into parse.h + other cosmetic changes
Todd C. Miller [Thu, 22 Jul 1999 12:51:13 +0000 (12:51 +0000)]
defines for logging routines
Todd C. Miller [Thu, 22 Jul 1999 12:49:28 +0000 (12:49 +0000)]
BSD-style copyright, cosmetic changes
Todd C. Miller [Thu, 22 Jul 1999 12:49:15 +0000 (12:49 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:46:29 +0000 (12:46 +0000)]
o tgetpass.c is no longer optional
o kill DCE_OBJS, add AUTH_OBJS
o kill --disable-tgetpass
o add --without-passwd
o changes to fill in AUTH_OBJS for new auth api
o check for strerror(), v?snprintf() and v?asprintf()
o replace --with-AuthSRV with --with-fwtk
Todd C. Miller [Thu, 22 Jul 1999 12:43:42 +0000 (12:43 +0000)]
BSD-style copyright. Remove USE_GETPASS and HAVE_UTIME_NULL. Add HAVE_FWTK, HAVE_STRERROR, HAVE_SNPRINTF, HAVE_VSNPRINTF, HAVE_ASPRINTF, HAVE_VASPRINTF, WITHOUT_PASSWD and NO_PASSWD
Todd C. Miller [Thu, 22 Jul 1999 12:42:02 +0000 (12:42 +0000)]
BSD-style copyright; Add S_IFLNK and MIN/MAX id they are missing.
Todd C. Miller [Thu, 22 Jul 1999 12:39:07 +0000 (12:39 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:38:48 +0000 (12:38 +0000)]
no more --with-getpass
Todd C. Miller [Thu, 22 Jul 1999 12:34:53 +0000 (12:34 +0000)]
Take out things I've done...
Todd C. Miller [Thu, 22 Jul 1999 12:34:19 +0000 (12:34 +0000)]
Refer to LICENSE
Todd C. Miller [Thu, 22 Jul 1999 12:34:01 +0000 (12:34 +0000)]
--with-getpass no longer exists
Todd C. Miller [Thu, 22 Jul 1999 12:33:26 +0000 (12:33 +0000)]
BSD-style copyright. Update to reflect reality wrt new files and new auth modules.
Todd C. Miller [Thu, 22 Jul 1999 12:32:39 +0000 (12:32 +0000)]
Remove --with-AuthSRV and --disable-tgetpass. Add --with-fwtk and --without-passwd.
Todd C. Miller [Thu, 22 Jul 1999 12:31:53 +0000 (12:31 +0000)]
Update history a bit
Todd C. Miller [Thu, 22 Jul 1999 12:29:33 +0000 (12:29 +0000)]
Now distributed under a BSD-style license
Todd C. Miller [Thu, 22 Jul 1999 12:28:08 +0000 (12:28 +0000)]
o BSD-style copyright
o Add support for NO_PASSWD/WITHOUT_PASSWD options.
o skey/opie replaced by rfc1938 code
o new struct sudo_user global
Todd C. Miller [Thu, 22 Jul 1999 12:25:16 +0000 (12:25 +0000)]
BSD-style copyright and use new log functions
Todd C. Miller [Thu, 22 Jul 1999 12:24:42 +0000 (12:24 +0000)]
o BSD-style copyright
o Use new log functiongs
o Use asprintf() and snprintf() where sensible.
Todd C. Miller [Thu, 22 Jul 1999 12:19:11 +0000 (12:19 +0000)]
Rewrote all the old sudo 1.1/1.2 code. Timestamp handling is now
done more reasonably--better sanity checks and tty-based stamps are
now done as files in a directory with the same name as the invoking
user, eg. /var/run/sudo/millert/ttyp1. It is not currently possible
to mix tty and non-tty based ticket schemes but this may change in
the future (it requires sudo to use a directory instead of a file
in the non-tty case). Also, ``sudo -k'' now sets the ticket back
to the epoch and ``sudo -K'' really deletes the file. That way you
don't get the lecture again just because you killed your ticket in
.logout. BSD-style copyright now.
Todd C. Miller [Thu, 22 Jul 1999 12:13:50 +0000 (12:13 +0000)]
o rewritten logging routines. log_error() now takes printf-style varargs
and log_auth() for the return value of validate().
o BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 11:04:02 +0000 (11:04 +0000)]
superceded by new auth API
Todd C. Miller [Thu, 22 Jul 1999 11:02:34 +0000 (11:02 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 11:02:24 +0000 (11:02 +0000)]
Use snprintf() where it makes sense and add a BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 11:00:49 +0000 (11:00 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 10:58:10 +0000 (10:58 +0000)]
BSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 10:57:09 +0000 (10:57 +0000)]
this has been rewritten so use my BSD-style copyright
Todd C. Miller [Thu, 15 Jul 1999 15:21:25 +0000 (15:21 +0000)]
include malloc.h if no stdlib.h
Todd C. Miller [Thu, 15 Jul 1999 14:21:02 +0000 (14:21 +0000)]
KTH snprintf()/asprintf() for systems w/o them
Todd C. Miller [Thu, 15 Jul 1999 14:20:28 +0000 (14:20 +0000)]
strerror() for systems w/o it
Todd C. Miller [Mon, 12 Jul 1999 10:53:09 +0000 (10:53 +0000)]
stylistic changes
Todd C. Miller [Mon, 12 Jul 1999 10:25:14 +0000 (10:25 +0000)]
Add contribution info in the main comment
Todd C. Miller [Sun, 11 Jul 1999 20:10:25 +0000 (20:10 +0000)]
remove missed ref to PAM_nullpw
Todd C. Miller [Sun, 11 Jul 1999 20:10:00 +0000 (20:10 +0000)]
pasto
Todd C. Miller [Sun, 11 Jul 1999 19:19:18 +0000 (19:19 +0000)]
more or less complete now--still untested
Todd C. Miller [Sun, 11 Jul 1999 19:09:21 +0000 (19:09 +0000)]
don't use user_name macro, it will go away
Todd C. Miller [Sun, 11 Jul 1999 18:42:34 +0000 (18:42 +0000)]
combine skey/opie code into rfc1938.c
Todd C. Miller [Sun, 11 Jul 1999 11:22:16 +0000 (11:22 +0000)]
DCE authentication method; basically unchanged from dce_pwent.c
Todd C. Miller [Sun, 11 Jul 1999 10:44:59 +0000 (10:44 +0000)]
AIX authenticate() support. Could probably be much better
Todd C. Miller [Sun, 11 Jul 1999 10:43:42 +0000 (10:43 +0000)]
Fix an uninitialized variable and some cleanup. Now works (tested)
Todd C. Miller [Sun, 11 Jul 1999 09:37:19 +0000 (09:37 +0000)]
SIA support for digital unix
Todd C. Miller [Sun, 11 Jul 1999 09:33:01 +0000 (09:33 +0000)]
don't use prompt global, it will go away
Todd C. Miller [Sun, 11 Jul 1999 09:32:52 +0000 (09:32 +0000)]
correct copyright years
Todd C. Miller [Sun, 11 Jul 1999 00:32:11 +0000 (00:32 +0000)]
New authentication API and methods
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>