++version

This commit is contained in:
Todd C. Miller
1995-12-18 03:09:49 +00:00
parent d606c291cc
commit 6846377706
36 changed files with 190 additions and 39 deletions

5
BUGS
View File

@@ -1,4 +1,4 @@
Known bugs in sudo version 1.3.6 Known bugs in sudo version 1.3.7
================================ ================================
1) Sudo -l does not expand Command Aliases. 1) Sudo -l does not expand Command Aliases.
@@ -9,3 +9,6 @@ Known bugs in sudo version 1.3.6
directories if necesary. directories if necesary.
4) Sudo should log when removing "dangerous" envariables. 4) Sudo should log when removing "dangerous" envariables.
5) Stuff in interfaces.c dumps core on Interactive UN*X.
This needs to be fixed before 1.4.0 can be released.

148
CHANGES
View File

@@ -401,3 +401,151 @@ CHANGES from sudo 1.3.3
there (may be a library problem). there (may be a library problem).
130) Updated man page to reflect two more security issues. 130) Updated man page to reflect two more security issues.
131) Cleaned up shadow password support in check.c. It should now
be readable.
132) Added SCO support.
133) Added check to configure to find the max length of a uid_t
in characters.
134) Removed uid2str() since we now know how big a uid_t/gid_t
can be. This elminates a few malloc()'s.
135) Added support for multiple insult types. Based on code and
a suggestion from Dieter Dworkin Muller <dworkin@village.org>.
136) Replaced clean_env() and rmenv() with a rewritten clean_env()
that should be a little faster. This also makes it easier to
add to the list of "dangerous" envariables.
137) Added netgroup support. Netgroups must start with a leading
"+" to that sudo knows it is a netgroup.
138) Split out sudoers file format into its own man page.
As suggested by Andy Smith <abs@maunsell.co.uk>.
139) Updated testsudoers.c to grok netgroups.
CHANGES from sudo 1.3.4
140) Added SecurID support from Giles Todd <giles@gt.demon.co.uk>.
141) Added -s flag to start a root shell and -- to signify end of args.
142) Sped up logging routines by replacing strncpy()'s with strcat()'s.
This is safe because we dyanically allocate logline to be big enough.
143) Now support command line arguments in the sudoers file.
144) Sped up the loading on command line arguments. This fixes the
"commands with large argc's take forever to run" bug.
145) Expanded MAXCOMMANDLEN to 8K since we now have to deal with
command line arguments. Added bounds checking in fill() and
append() so we don't drop core.
XXX - 8k makes sudo *SLOW*
146) Added support in the lexer for "termination characters" to be
escaped. Ie: you can now use [\,:=] in command line args
as long as you escape with a \.
147) Testsudoers can now deal with commands that have arguments.
148) If a file is not executable or not a regular file sudo will
now give the appropriate error message instead of just
"command not found" which is misleading.
149) Fixed a bug where if FQDN is set, load_interfaces() was never
called.
150) tty is now a global so it can be used in the ticket file
at a later date.
151) Strings in the parser are now allocated dynamically. This results
in a large speedup as compared to a 1K array on the stack. I
have freed the strings in the parser where appropriate but that
may not catch all instances. Even so, the average sudo now
takes up less memory than the 1K array version.
152) Fixed a bug in tgetpass() and configure that broke termio/termios
support for some OS's.
153) Added cheapo implementation of tty-based timestamps. The correct
way is to have username be a directory with the tty tickets
inside. However, the current code does not take to that very
well, and it does not allow the two systems to coexist. Therefore,
instead of timestampdir/user/tty it is timestampdir/user.tty.
154) Added support for building in other than the source directory.
Based on changes from "Simon J. Gerraty" <sjg@frodo.dn.itg.telecom.com.au>
155) options.h and pathnames.h are now included via angle brackets
(<>) so as to use the -I include path. This way, those using
a shadow build tree may have local copies of these headers
w/o clobbering the distribution ones.
156) EXEMPTGROUP is now a string (group name) and user_is_exempt()
is now less of a hack. It uses getgrnam(EXEMPTGROUP) to
get a list of users in the exempted group.
157) --prefix and --exe_prefix are now honored in the Makefile.
158) Sudo will now behave reasonably in the case where the sudoers
file location is mounted via NFS and the client does not
have "root" NFS privs.
159) _PATH_SUDO_SUDOERS, _PATH_SUDO_STMP, and SUDOERS_OWNER are
now set via the Makefile since that appears to be what
most people expect...
160) Now include a pre-generated version of parse.lex since so many
versions of lex are brain damaged. If parse.lex is changed
a new lex.yy.c will be generated. The distribution copy is
sudo-lex.yy.c.
161) Upgraded to GNU autoconf version 1.5. There are now even
*more* options.
CHANGES from sudo 1.3.5
162) Fixed S/Key support.
163) Cleaned up shadow password support further by moving much of
it to sudo_getpwuid.c.
164) First cut at DCE support. [needs work to be functional]
165) New Digital UNIX C2 support based on code from
"Randy M. Hayman" <haymanr@icefog.sois.alaska.edu>
166) S/key support now works with the generic bellcore s/key
as well as the s/key from Wietse Venema's logdaemon.
(Previously only worked with the logdaemon s/key).
As an added bonus the s/key challenge is now embedded
in the password prompt for a cleaner look.
167) lsearch.c will now compile on a strict ANSI C compiler.
ANSI doesn't allow pointer arithmetic on a "void *"
but gcc does.
168) Bought back latest HP-UX DCE support from Jeff Earickson
<jaearick@colby.edu>.
169) configure now comletely groks $SUDO_LIBS and $VISUDO_LIBS.
Plain old $LIBS is no longer used. LDFLAGS has also been
split up into $SUDO_LDFLAGS and $VISUDO_LDFLAGS.
The reason for this is that sudo often needs extra libs
for alternate authentication schemes but visudo rarely does.
170) The code to copy command arguments flaied for large values of
argc due to realloc() lossage. We now cheat and treat argv[]
as a flat string (since that's what it is) and use pointer
arithmetic to compute the length. Kind of sneaky but it
works (and is relatively fast).
CHANGES from sudo 1.3.6
171) Added support for UN*X groups in sudoers based on code from
Dougal Scott <dwagon@aaii.oz.au>.

View File

@@ -1,4 +1,4 @@
Installation instructions for CU sudo 1.3.6 Installation instructions for CU sudo 1.3.7
=========================================== ===========================================
Sudo uses a `configure' script to probe the capabilities and type Sudo uses a `configure' script to probe the capabilities and type

View File

@@ -1,5 +1,5 @@
#* #*
#* CU sudo version 1.3.6 (based on Root Group sudo version 1.1) #* CU sudo version 1.3.7 (based on Root Group sudo version 1.1)
#* #*
#* This software comes with no waranty whatsoever, use at your own risk. #* This software comes with no waranty whatsoever, use at your own risk.
#* #*
@@ -112,7 +112,7 @@ LIBOBJS = @TGETPASS@ @LIBOBJS@
HDRS = sudo.h pathnames.h options.h compat.h version.h insults.h \ HDRS = sudo.h pathnames.h options.h compat.h version.h insults.h \
ins_2001.h ins_classic.h ins_goons.h ins_csops.h ins_2001.h ins_classic.h ins_goons.h ins_csops.h
VERSION = 1.3.6 VERSION = 1.3.7
DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES COPYING HISTORY INSTALL OPTIONS TODO \ DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES COPYING HISTORY INSTALL OPTIONS TODO \
PORTING README RUNSON TROUBLESHOOTING Makefile.in acsite.m4 \ PORTING README RUNSON TROUBLESHOOTING Makefile.in acsite.m4 \

View File

@@ -1,4 +1,4 @@
The following options may be used to configure sudo 1.3.6 The following options may be used to configure sudo 1.3.7
FQDN FQDN
Define this if you want to put fully qualified hostnames in the sudoers Define this if you want to put fully qualified hostnames in the sudoers

4
README
View File

@@ -1,4 +1,4 @@
This is the CU version of sudo, release 1.3.6 (BETA) This is the CU version of sudo, release 1.3.7 (BETA)
The sudo philosophy The sudo philosophy
=================== ===================
@@ -26,7 +26,7 @@ Group's sudo 1.1, the code has been changed significantly, so please
do not bother them with bugs in CU sudo. Bug reports for this sudo do not bother them with bugs in CU sudo. Bug reports for this sudo
should be sent to sudo-bugs@cs.colorado.edu. should be sent to sudo-bugs@cs.colorado.edu.
CU sudo 1.3.6 represents a huge change from the 1.3.1 code base. CU sudo 1.3.7 represents a huge change from the 1.3.1 code base.
It includes a completely rewritten parser contributed by Chris Jepeway, It includes a completely rewritten parser contributed by Chris Jepeway,
a smarter and easier to use visudo, an updated configure script along a smarter and easier to use visudo, an updated configure script along
with the usual bug fixes and portability changes. See the CHANGES file with the usual bug fixes and portability changes. See the CHANGES file

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 (based on Root Group sudo version 1.1) * CU sudo version 1.3.7 (based on Root Group sudo version 1.1)
* *
* This software comes with no waranty whatsoever, use at your own risk. * This software comes with no waranty whatsoever, use at your own risk.
* *
@@ -724,7 +724,7 @@ static void reminder()
(void) fprintf(stderr, "\n%s\n%s\n\n%s\n%s\n\n", (void) fprintf(stderr, "\n%s\n%s\n\n%s\n%s\n\n",
#else #else
(void) fprintf(stderr, "\n%s\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n\n", (void) fprintf(stderr, "\n%s\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n\n",
" CU sudo version 1.3.6, based on Root Group sudo version 1.1", " CU sudo version 1.3.7, based on Root Group sudo version 1.1",
" sudo version 1.1, Copyright (C) 1991 The Root Group, Inc.", " sudo version 1.1, Copyright (C) 1991 The Root Group, Inc.",
" sudo comes with ABSOLUTELY NO WARRANTY. This is free software,", " sudo comes with ABSOLUTELY NO WARRANTY. This is free software,",
" and you are welcome to redistribute it under certain conditions.", " and you are welcome to redistribute it under certain conditions.",

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
echo Configuring CU Sudo version 1.3.6 echo Configuring CU Sudo version 1.3.7
AC_INIT(sudo.h) AC_INIT(sudo.h)
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
dnl dnl

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 (based on Root Group sudo version 1.1) * CU sudo version 1.3.7 (based on Root Group sudo version 1.1)
* *
* This software comes with no waranty whatsoever, use at your own risk. * This software comes with no waranty whatsoever, use at your own risk.
* *

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,6 +1,6 @@
%{ %{
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,6 +1,6 @@
%{ %{
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 (based on Root Group sudo version 1.1) * CU sudo version 1.3.7 (based on Root Group sudo version 1.1)
* *
* This software comes with no waranty whatsoever, use at your own risk. * This software comes with no waranty whatsoever, use at your own risk.
* *

2
sudo.c
View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 (based on Root Group sudo version 1.1) * CU sudo version 1.3.7 (based on Root Group sudo version 1.1)
* *
* This software comes with no waranty whatsoever, use at your own risk. * This software comes with no waranty whatsoever, use at your own risk.
* *

2
sudo.h
View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 (based on Root Group sudo version 1.1) * CU sudo version 1.3.7 (based on Root Group sudo version 1.1)
* *
* This software comes with no waranty whatsoever, use at your own risk. * This software comes with no waranty whatsoever, use at your own risk.
* *

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@@ -23,6 +23,6 @@
#ifndef _SUDO_VERSION_H #ifndef _SUDO_VERSION_H
#define _SUDO_VERSION_H #define _SUDO_VERSION_H
static char version[] = "1.3.6"; static char version[] = "1.3.7";
#endif /* _SUDO_VERSION_H */ #endif /* _SUDO_VERSION_H */

View File

@@ -1,5 +1,5 @@
/* /*
* CU sudo version 1.3.6 * CU sudo version 1.3.7
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by