]> granicus.if.org Git - sudo/log
sudo
25 years agoo Document -K flag and update meaning of -k flag.
Todd C. Miller [Thu, 22 Jul 1999 13:01:20 +0000 (13:01 +0000)]
o Document -K flag and update meaning of -k flag.
o BSD-style copyright
o Document clearing of BIND resolver environment variables
o Clarify bit about shared libs
o suggest rc files create /tmp/.odus if your OS gives away files

25 years agoBSD license
Todd C. Miller [Thu, 22 Jul 1999 12:59:37 +0000 (12:59 +0000)]
BSD license

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:58:52 +0000 (12:58 +0000)]
BSD-style copyright

25 years agoo BSD 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

25 years agoo BSD-style copyright
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

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:56:50 +0000 (12:56 +0000)]
BSD-style copyright

25 years agoo BSD 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.

25 years agoo no longer contains sudo 1.1/1.2 code
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

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:53:30 +0000 (12:53 +0000)]
BSD-style copyright

25 years agoNow compiles on more K&R compilers
Todd C. Miller [Thu, 22 Jul 1999 12:53:20 +0000 (12:53 +0000)]
Now compiles on more K&R compilers

25 years agoBSD-style copyright, cosmetic changes
Todd C. Miller [Thu, 22 Jul 1999 12:52:23 +0000 (12:52 +0000)]
BSD-style copyright, cosmetic changes

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:52:06 +0000 (12:52 +0000)]
BSD-style copyright

25 years agoBSD-style copyright. Move parser-specific defines and structs into parse.h + other...
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

25 years agodefines for logging routines
Todd C. Miller [Thu, 22 Jul 1999 12:51:13 +0000 (12:51 +0000)]
defines for logging routines

25 years agoBSD-style copyright, cosmetic changes
Todd C. Miller [Thu, 22 Jul 1999 12:49:28 +0000 (12:49 +0000)]
BSD-style copyright, cosmetic changes

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:49:15 +0000 (12:49 +0000)]
BSD-style copyright

25 years agoo tgetpass.c is no longer optional
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

25 years agoBSD-style copyright. Remove USE_GETPASS and HAVE_UTIME_NULL. Add HAVE_FWTK, HAVE_ST...
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

25 years agoBSD-style copyright; Add S_IFLNK and MIN/MAX id they are missing.
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.

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 12:39:07 +0000 (12:39 +0000)]
BSD-style copyright

25 years agono more --with-getpass
Todd C. Miller [Thu, 22 Jul 1999 12:38:48 +0000 (12:38 +0000)]
no more --with-getpass

25 years agoTake out things I've done...
Todd C. Miller [Thu, 22 Jul 1999 12:34:53 +0000 (12:34 +0000)]
Take out things I've done...

25 years agoRefer to LICENSE
Todd C. Miller [Thu, 22 Jul 1999 12:34:19 +0000 (12:34 +0000)]
Refer to LICENSE

25 years ago--with-getpass no longer exists
Todd C. Miller [Thu, 22 Jul 1999 12:34:01 +0000 (12:34 +0000)]
--with-getpass no longer exists

25 years agoBSD-style copyright. Update to reflect reality wrt new files and new auth modules.
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.

25 years agoRemove --with-AuthSRV and --disable-tgetpass. Add --with-fwtk and --without-passwd.
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.

25 years agoUpdate history a bit
Todd C. Miller [Thu, 22 Jul 1999 12:31:53 +0000 (12:31 +0000)]
Update history a bit

25 years agoNow distributed under a BSD-style license
Todd C. Miller [Thu, 22 Jul 1999 12:29:33 +0000 (12:29 +0000)]
Now distributed under a BSD-style license

25 years agoo BSD-style copyright
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

25 years agoBSD-style copyright and use new log functions
Todd C. Miller [Thu, 22 Jul 1999 12:25:16 +0000 (12:25 +0000)]
BSD-style copyright and use new log functions

25 years agoo BSD-style copyright
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.

25 years agoRewrote all the old sudo 1.1/1.2 code. Timestamp handling is now
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.

25 years agoo rewritten logging routines. log_error() now takes printf-style varargs
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

25 years agosuperceded by new auth API
Todd C. Miller [Thu, 22 Jul 1999 11:04:02 +0000 (11:04 +0000)]
superceded by new auth API

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 11:02:34 +0000 (11:02 +0000)]
BSD-style copyright

25 years agoUse snprintf() where it makes sense and add a 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

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 11:00:49 +0000 (11:00 +0000)]
BSD-style copyright

25 years agoBSD-style copyright
Todd C. Miller [Thu, 22 Jul 1999 10:58:10 +0000 (10:58 +0000)]
BSD-style copyright

25 years agothis has been rewritten so use my 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

25 years agoinclude malloc.h if no stdlib.h
Todd C. Miller [Thu, 15 Jul 1999 15:21:25 +0000 (15:21 +0000)]
include malloc.h if no stdlib.h

25 years agoKTH snprintf()/asprintf() for systems w/o them
Todd C. Miller [Thu, 15 Jul 1999 14:21:02 +0000 (14:21 +0000)]
KTH snprintf()/asprintf() for systems w/o them

25 years agostrerror() for systems w/o it
Todd C. Miller [Thu, 15 Jul 1999 14:20:28 +0000 (14:20 +0000)]
strerror() for systems w/o it

25 years agostylistic changes
Todd C. Miller [Mon, 12 Jul 1999 10:53:09 +0000 (10:53 +0000)]
stylistic changes

25 years agoAdd contribution info in the main comment
Todd C. Miller [Mon, 12 Jul 1999 10:25:14 +0000 (10:25 +0000)]
Add contribution info in the main comment

25 years agoremove missed ref to PAM_nullpw
Todd C. Miller [Sun, 11 Jul 1999 20:10:25 +0000 (20:10 +0000)]
remove missed ref to PAM_nullpw

25 years agopasto
Todd C. Miller [Sun, 11 Jul 1999 20:10:00 +0000 (20:10 +0000)]
pasto

25 years agomore or less complete now--still untested
Todd C. Miller [Sun, 11 Jul 1999 19:19:18 +0000 (19:19 +0000)]
more or less complete now--still untested

25 years agodon't use user_name macro, it will go away
Todd C. Miller [Sun, 11 Jul 1999 19:09:21 +0000 (19:09 +0000)]
don't use user_name macro, it will go away

25 years agocombine skey/opie code into rfc1938.c
Todd C. Miller [Sun, 11 Jul 1999 18:42:34 +0000 (18:42 +0000)]
combine skey/opie code into rfc1938.c

25 years agoDCE authentication method; basically unchanged from dce_pwent.c
Todd C. Miller [Sun, 11 Jul 1999 11:22:16 +0000 (11:22 +0000)]
DCE authentication method; basically unchanged from dce_pwent.c

25 years agoAIX authenticate() support. Could probably be much better
Todd C. Miller [Sun, 11 Jul 1999 10:44:59 +0000 (10:44 +0000)]
AIX authenticate() support.  Could probably be much better

25 years agoFix an uninitialized variable and some cleanup. Now works (tested)
Todd C. Miller [Sun, 11 Jul 1999 10:43:42 +0000 (10:43 +0000)]
Fix an uninitialized variable and some cleanup.  Now works (tested)

25 years agoSIA support for digital unix
Todd C. Miller [Sun, 11 Jul 1999 09:37:19 +0000 (09:37 +0000)]
SIA support for digital unix

25 years agodon't use prompt global, it will go away
Todd C. Miller [Sun, 11 Jul 1999 09:33:01 +0000 (09:33 +0000)]
don't use prompt global, it will go away

25 years agocorrect copyright years
Todd C. Miller [Sun, 11 Jul 1999 09:32:52 +0000 (09:32 +0000)]
correct copyright years

25 years agoNew authentication API and methods
Todd C. Miller [Sun, 11 Jul 1999 00:32:11 +0000 (00:32 +0000)]
New authentication API and methods

25 years agoregen
Todd C. Miller [Thu, 8 Jul 1999 10:46:46 +0000 (10:46 +0000)]
regen

25 years agoonly save an entry if user_matches && host_matches, even if the stack is empty (fix...
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)

25 years agoregen
Todd C. Miller [Thu, 8 Jul 1999 10:35:58 +0000 (10:35 +0000)]
regen

25 years ago1) Always save an entry on the stack if it is empty. This fixes the
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.

25 years agointerfaces and num_interfaces are now auto, not extern
Todd C. Miller [Thu, 8 Jul 1999 09:45:16 +0000 (09:45 +0000)]
interfaces and num_interfaces are now auto, not extern

25 years agouse a static global to keep stae about empty passwords
Todd C. Miller [Wed, 7 Jul 1999 18:09:00 +0000 (18:09 +0000)]
use a static global to keep stae about empty passwords

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.