]> granicus.if.org Git - sudo/log
sudo
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.

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