]> granicus.if.org Git - sudo/log
sudo
25 years agoadd parse.h dependency
Todd C. Miller [Mon, 9 Aug 1999 22:17:27 +0000 (22:17 +0000)]
add parse.h dependency

25 years agokill unused *_matched macros
Todd C. Miller [Mon, 9 Aug 1999 22:17:05 +0000 (22:17 +0000)]
kill unused *_matched macros

25 years agoAllow a list of users as the first thing in a user spec, not just a
Todd C. Miller [Mon, 9 Aug 1999 14:35:53 +0000 (14:35 +0000)]
Allow a list of users as the first thing in a user spec, not just a
single entry.  This makes things more uniform, though it does allow
you to write user specs that are hard to read.

25 years agoparse.yacc
Todd C. Miller [Mon, 9 Aug 1999 14:34:23 +0000 (14:34 +0000)]
parse.yacc

25 years agoregen
Todd C. Miller [Mon, 9 Aug 1999 14:08:19 +0000 (14:08 +0000)]
regen

25 years agofix check for crypt() in libufc
Todd C. Miller [Mon, 9 Aug 1999 14:08:03 +0000 (14:08 +0000)]
fix check for crypt() in libufc

25 years agosudo-users list now exists
Todd C. Miller [Sat, 7 Aug 1999 18:03:19 +0000 (18:03 +0000)]
sudo-users list now exists

25 years agoUpdate to reality.
Todd C. Miller [Sat, 7 Aug 1999 11:46:39 +0000 (11:46 +0000)]
Update to reality.

25 years agoo Move lock_file() and touch() into fileops.c so visudo can use them
Todd C. Miller [Sat, 7 Aug 1999 09:59:43 +0000 (09:59 +0000)]
o Move lock_file() and touch() into fileops.c so visudo can use them
o Visudo now locks the sudoers temp file instead of bailing when
the temp file already exists.  This fixes the problem of stale
temp files but it does *require* that you not try to put the
temp file in a world-writable directory.  This shoud not be
an issue as the temp file should live in the same dir as sudoers.
o Visudo now only installs the temp file as sudoers if it changed.

25 years agoadd fcntl locking
Todd C. Miller [Fri, 6 Aug 1999 13:49:26 +0000 (13:49 +0000)]
add fcntl locking

25 years agoLock the log file.
Todd C. Miller [Fri, 6 Aug 1999 13:33:03 +0000 (13:33 +0000)]
Lock the log file.

25 years agoo /etc/stmp -> /etc/sudoers.tmp since solaris uses stmp as shadow temp file
Todd C. Miller [Fri, 6 Aug 1999 09:37:03 +0000 (09:37 +0000)]
o /etc/stmp -> /etc/sudoers.tmp since solaris uses stmp as shadow temp file
o _PATH_SUDO_SUDOERS -> _PATH_SUDOERS and _PATH_SUDO_STMP -> _PATH_SUDOERS_TMP

25 years agoo Kill *_MESSAGE and replace with NO_LECTURE
Todd C. Miller [Thu, 5 Aug 1999 21:38:19 +0000 (21:38 +0000)]
o Kill *_MESSAGE and replace with NO_LECTURE
o Add more things to root sudo -V config reporting

25 years agoaix_auth.o not authenticate.o
Todd C. Miller [Thu, 5 Aug 1999 14:56:07 +0000 (14:56 +0000)]
aix_auth.o not authenticate.o

25 years agoAdd --with-goodpri and --with-badpri configure options to specify the
Todd C. Miller [Thu, 5 Aug 1999 14:48:35 +0000 (14:48 +0000)]
Add --with-goodpri and --with-badpri configure options to specify the
syslog priority to use.

25 years agoAdd --with-goodpri and --with-badpri configure options to specify the
Todd C. Miller [Thu, 5 Aug 1999 14:30:57 +0000 (14:30 +0000)]
Add --with-goodpri and --with-badpri configure options to specify the
syslog priority to use.

25 years agokill crufty AIX stuff
Todd C. Miller [Thu, 5 Aug 1999 14:25:35 +0000 (14:25 +0000)]
kill crufty AIX stuff

25 years agoSigh, some versions of make (like Solaris's) don't deal with $< like
Todd C. Miller [Thu, 5 Aug 1999 10:55:14 +0000 (10:55 +0000)]
Sigh, some versions of make (like Solaris's) don't deal with $< like
I would expect.  Both GNU and BSD makes get this right but...
So, we just expand $< inline at the cost of some ugliness.

25 years agoIf the invoking user is root, sudo will now print configure info in
Todd C. Miller [Thu, 5 Aug 1999 10:52:33 +0000 (10:52 +0000)]
If the invoking user is root, sudo will now print configure info in
-V mode.  Currently just prints logging info, to be expanded later.

25 years agoo new defines for syslog facility and priority
Todd C. Miller [Thu, 5 Aug 1999 10:51:02 +0000 (10:51 +0000)]
o new defines for syslog facility and priority
o use new print_version() functino for -V mode

25 years agoDon't need version.c
Todd C. Miller [Thu, 5 Aug 1999 10:49:24 +0000 (10:49 +0000)]
Don't need version.c

25 years agoAdd check for syslog facilities and priorities tables in syslog.h
Todd C. Miller [Thu, 5 Aug 1999 10:21:28 +0000 (10:21 +0000)]
Add check for syslog facilities and priorities tables in syslog.h

25 years agoo authenticate -> aix_auth
Todd C. Miller [Thu, 5 Aug 1999 09:23:39 +0000 (09:23 +0000)]
o authenticate -> aix_auth
o add version.c

25 years agoMissed a prompt -> user_prompt conversion
Todd C. Miller [Thu, 5 Aug 1999 09:21:38 +0000 (09:21 +0000)]
Missed a prompt -> user_prompt conversion

25 years agosudo should lock its logfile
Todd C. Miller [Wed, 4 Aug 1999 17:32:24 +0000 (17:32 +0000)]
sudo should lock its logfile

25 years agoo Add '!' correctly when expanding Aliases.
Todd C. Miller [Wed, 4 Aug 1999 17:28:47 +0000 (17:28 +0000)]
o Add '!' correctly when expanding Aliases.
o Add shortcut macros for append() to make things more readable.
o The separator in append() is now a string instead of a char.
o In append(), only prepend the separator if the last char is not a '!'.
  This is a hack but it greatly simplifies '!' handling.
o In -l mode, Runas lists and NOPASSWD/PASSWD tags are now inherited
  across entries in a list (matches current behavior).
o Fix formatting in -l mode such that items in a list are separated by
  a space.  Greatlt improves readability.
o Space for name field in struct aliasinfo is now allocated dyanically
  instead of using a (big) buffer.
o In add_alias(), only search the list once (lsearch instead of lfind + lsearch)

25 years agoregen
Todd C. Miller [Wed, 4 Aug 1999 15:31:47 +0000 (15:31 +0000)]
regen

25 years agoSolais pam doesn't require anye xtra setup
Todd C. Miller [Wed, 4 Aug 1999 14:54:34 +0000 (14:54 +0000)]
Solais pam doesn't require anye xtra setup

25 years agoo Simpler '!' support now that the lexer deals with multiple !'s for us.
Todd C. Miller [Wed, 4 Aug 1999 09:35:56 +0000 (09:35 +0000)]
o Simpler '!' support now that the lexer deals with multiple !'s for us.
o In the case of opFOO, have FOO give a boolean return value and set
  foo_matches in opFOO, not FOO.
o Treat 'ALL' as a string since it gets fill()'d in parse.lex--fixes a
  small memory leak.  In the long run it may be better to just fix parse.lex
  and make ALL back into a token.  However, having it be a string is useful
  since it can be easily passed back to the parent rule if we so desire.

25 years agoo Remove some unnecessary backslashes
Todd C. Miller [Wed, 4 Aug 1999 07:54:34 +0000 (07:54 +0000)]
o Remove some unnecessary backslashes
o collapse multiple !'s by using !+ and checking if yyleng is even or odd.
  this allows us to simplify ! handling in parse.yacc

25 years ago-u flag was being ignored
Todd C. Miller [Wed, 4 Aug 1999 07:53:04 +0000 (07:53 +0000)]
-u flag was being ignored

25 years agocorrect fix
Todd C. Miller [Sun, 1 Aug 1999 17:04:05 +0000 (17:04 +0000)]
correct fix

25 years agowork around pod2man stupididy
Todd C. Miller [Sun, 1 Aug 1999 16:37:07 +0000 (16:37 +0000)]
work around pod2man stupididy

25 years agocorrect dependencies for .cat
Todd C. Miller [Sun, 1 Aug 1999 16:35:06 +0000 (16:35 +0000)]
correct dependencies for .cat

25 years agoregen
Todd C. Miller [Sun, 1 Aug 1999 16:26:16 +0000 (16:26 +0000)]
regen

25 years agoAdd copyright
Todd C. Miller [Sun, 1 Aug 1999 16:25:25 +0000 (16:25 +0000)]
Add copyright
Update to reality

25 years agorename validate() to the more descriptive sudoers_lookup()
Todd C. Miller [Sun, 1 Aug 1999 15:42:12 +0000 (15:42 +0000)]
rename validate() to the more descriptive sudoers_lookup()

25 years agouse tgetpass
Todd C. Miller [Sun, 1 Aug 1999 10:49:41 +0000 (10:49 +0000)]
use tgetpass

25 years agoupdates
Todd C. Miller [Sat, 31 Jul 1999 16:32:56 +0000 (16:32 +0000)]
updates

25 years agoSudo, not CU Sudo
Todd C. Miller [Sat, 31 Jul 1999 16:31:27 +0000 (16:31 +0000)]
Sudo, not CU Sudo

25 years agoadd 4th term to license similar to term 5 in the apache license
Todd C. Miller [Sat, 31 Jul 1999 16:20:10 +0000 (16:20 +0000)]
add 4th term to license similar to term 5 in the apache license

25 years agoadd 4th term to license similar to term 5 in the apache license
Todd C. Miller [Sat, 31 Jul 1999 16:19:51 +0000 (16:19 +0000)]
add 4th term to license similar to term 5 in the apache license

25 years agoadd 4th term to license similar to term 5 in the apache license
Todd C. Miller [Sat, 31 Jul 1999 16:19:50 +0000 (16:19 +0000)]
add 4th term to license similar to term 5 in the apache license

25 years agoadd 4th term to license similar to term 5 in the apache license
Todd C. Miller [Sat, 31 Jul 1999 16:19:45 +0000 (16:19 +0000)]
add 4th term to license similar to term 5 in the apache license

25 years agoadd 4th term to license similar to term 5 in the apache license
Todd C. Miller [Sat, 31 Jul 1999 16:19:45 +0000 (16:19 +0000)]
add 4th term to license similar to term 5 in the apache license

25 years agothere was a 1995 release too
Todd C. Miller [Sat, 31 Jul 1999 16:02:13 +0000 (16:02 +0000)]
there was a 1995 release too

25 years agoupdates
Todd C. Miller [Wed, 28 Jul 1999 09:24:45 +0000 (09:24 +0000)]
updates

25 years agoUse dirs instead of files for timestamp. This allows tty and non-tty
Todd C. Miller [Wed, 28 Jul 1999 09:21:00 +0000 (09:21 +0000)]
Use dirs instead of files for timestamp.  This allows tty and non-tty
schemes to coexist reasonably.  Note, however, that when you update
a tty ticket, the mtime on the user dir gets updated as well.

25 years agoFix getprpwnam() checking on SCO. Need to link with "-lprot -lx" when
Todd C. Miller [Wed, 28 Jul 1999 09:17:14 +0000 (09:17 +0000)]
Fix getprpwnam() checking on SCO.  Need to link with "-lprot -lx" when
linking test program, not just -lprot.  Also add check for getspnam().
The SCO docs indicate that /etc/shadow can be used but this may be a lie.

25 years agofirst cut at auth API description
Todd C. Miller [Sat, 24 Jul 1999 07:35:42 +0000 (07:35 +0000)]
first cut at auth API description

25 years agoauth API change. There is now an init method that gets run before
Todd C. Miller [Thu, 22 Jul 1999 19:48:27 +0000 (19:48 +0000)]
auth API change.  There is now an init method that gets run before
the main loop.  This allows auth routines to differentiate between
initialization that happens once vs. setup that needs to run each time
through the loop.

25 years agouse easprintf() and evasprintf()
Todd C. Miller [Thu, 22 Jul 1999 16:23:13 +0000 (16:23 +0000)]
use easprintf() and evasprintf()

25 years agoadd easprintf() and evasprintf(), error checking versions of asprintf() and vasprintf()
Todd C. Miller [Thu, 22 Jul 1999 16:22:47 +0000 (16:22 +0000)]
add easprintf() and evasprintf(), error checking versions of asprintf() and  vasprintf()

25 years agoremove 2 items. One done, one won't do.
Todd C. Miller [Thu, 22 Jul 1999 13:14:31 +0000 (13:14 +0000)]
remove 2 items.  One done, one won't do.

25 years agoregen
Todd C. Miller [Thu, 22 Jul 1999 13:12:27 +0000 (13:12 +0000)]
regen

25 years agoregen
Todd C. Miller [Thu, 22 Jul 1999 13:11:16 +0000 (13:11 +0000)]
regen

25 years agonew changes
Todd C. Miller [Thu, 22 Jul 1999 13:06:48 +0000 (13:06 +0000)]
new changes

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