Todd C. Miller [Fri, 9 Jan 2004 07:00:01 +0000 (07:00 +0000)]
Call AC_ENABLE_SHARED and check the status of enable_shared to know when
shared libs are available.
Todd C. Miller [Fri, 9 Jan 2004 06:37:08 +0000 (06:37 +0000)]
Duh, OpenBSD suports shared libs too
Todd C. Miller [Fri, 9 Jan 2004 06:18:10 +0000 (06:18 +0000)]
Only OpenPAM and Linux PAM use const qualifiers.
Todd C. Miller [Fri, 9 Jan 2004 06:15:34 +0000 (06:15 +0000)]
o No need to check for sed, libtool config does that for us
o move check for --with-noexec until after libtool magic is run so we
can use $can_build_shared and $shrext
Todd C. Miller [Fri, 9 Jan 2004 06:14:31 +0000 (06:14 +0000)]
Don't print a bunch of crap about library installs since we are not
really installing a library.
Todd C. Miller [Fri, 9 Jan 2004 05:38:58 +0000 (05:38 +0000)]
Make format_env() varargs
Add noexec support for Darwin, MacOS X, Irix, and Tru64
Todd C. Miller [Fri, 9 Jan 2004 05:32:55 +0000 (05:32 +0000)]
Update to libtool 1.5 with local changes:
o no ldconfig in the finish step
o assume no libprefix or version is needed
Todd C. Miller [Fri, 9 Jan 2004 05:15:38 +0000 (05:15 +0000)]
Fix compilation under K&R
Todd C. Miller [Tue, 6 Jan 2004 14:31:35 +0000 (14:31 +0000)]
checkpoint
Todd C. Miller [Tue, 6 Jan 2004 14:28:49 +0000 (14:28 +0000)]
stub execve() that just returns EACCES; used for noexec functionality
Todd C. Miller [Tue, 6 Jan 2004 06:42:14 +0000 (06:42 +0000)]
Regen w/ updated byacc from OpenBSD; fixes a gcc 3.2 issue with generated code.
Todd C. Miller [Tue, 6 Jan 2004 06:42:14 +0000 (06:42 +0000)]
Regen w/ updated byacc from OpenBSD; fixes a gcc 3.2 issue with generated code.
Todd C. Miller [Mon, 5 Jan 2004 21:10:19 +0000 (21:10 +0000)]
Move the environment defaults to the end and shorten a few of the descriptions.
Todd C. Miller [Mon, 5 Jan 2004 20:05:29 +0000 (20:05 +0000)]
no shared libs on ultris or convexos
Todd C. Miller [Mon, 5 Jan 2004 20:03:09 +0000 (20:03 +0000)]
Build sudo_noexec shared object using libtool; could use some cleanup.
Todd C. Miller [Mon, 5 Jan 2004 19:59:56 +0000 (19:59 +0000)]
libtool scaffolding
Todd C. Miller [Mon, 5 Jan 2004 19:56:43 +0000 (19:56 +0000)]
Merge the NOPASSWD/PASSWD and NOEXEC/EXEC rules so that order is not
important.
Todd C. Miller [Mon, 5 Jan 2004 17:15:32 +0000 (17:15 +0000)]
update copyright year
Todd C. Miller [Mon, 5 Jan 2004 03:58:39 +0000 (03:58 +0000)]
Add _PATH_SUDO_NOEXEC and corresponding --with-noexec configure option.
The default value of noexec_file is set to this.
Todd C. Miller [Mon, 5 Jan 2004 02:48:09 +0000 (02:48 +0000)]
Add support for preloading a shared object containing a dummy execve()
function that just sets error and returns -1. This adds a
"noexec_file" option to load the filename as well as a "noexec" flag
to enable it unconditionally. There is also a NOEXEC tag that can
be attached to specific commands and an EXEC tag to disable it.
Todd C. Miller [Mon, 5 Jan 2004 02:40:02 +0000 (02:40 +0000)]
add missing newline to usage statement
Todd C. Miller [Mon, 5 Jan 2004 01:39:57 +0000 (01:39 +0000)]
Rename EXEC macro -> EXECV
Todd C. Miller [Mon, 5 Jan 2004 01:16:24 +0000 (01:16 +0000)]
Don't truncate usernames to 8 characters in the log message.
Todd C. Miller [Mon, 5 Jan 2004 01:13:50 +0000 (01:13 +0000)]
Update copyright year
Todd C. Miller [Mon, 5 Jan 2004 01:12:22 +0000 (01:12 +0000)]
Add a new option, lecture_file, that can be used to point to a custom
sudo lecture.
Todd C. Miller [Wed, 31 Dec 2003 22:46:10 +0000 (22:46 +0000)]
Add a zero_bytes() function to do the equivalent of bzero in such a
way that will heopfully not be optimized away by sneaky compilers.
Todd C. Miller [Wed, 31 Dec 2003 22:46:08 +0000 (22:46 +0000)]
Add a zero_bytes() function to do the equivalent of bzero in such a
way that will heopfully not be optimized away by sneaky compilers.
Todd C. Miller [Wed, 31 Dec 2003 22:46:08 +0000 (22:46 +0000)]
Add a zero_bytes() function to do the equivalent of bzero in such a
way that will heopfully not be optimized away by sneaky compilers.
Todd C. Miller [Wed, 31 Dec 2003 18:35:02 +0000 (18:35 +0000)]
Use #ifdef __STDC__, not #if __STDC__.
Todd C. Miller [Tue, 30 Dec 2003 22:41:52 +0000 (22:41 +0000)]
Always put at least one space between the def_* macro name and its
definition.
Todd C. Miller [Tue, 30 Dec 2003 22:34:28 +0000 (22:34 +0000)]
Adjust code for --without-lecture to match new values.
Todd C. Miller [Tue, 30 Dec 2003 22:33:50 +0000 (22:33 +0000)]
regen after pasto fix
Todd C. Miller [Tue, 30 Dec 2003 22:31:56 +0000 (22:31 +0000)]
Document that "lecture" has changed from a flag to a tuple.
Todd C. Miller [Tue, 30 Dec 2003 22:31:30 +0000 (22:31 +0000)]
Add support for tuples in def_data.in; these are implemented as an
enum type. Currently there is only a single tuple enum but in the
future we may have one tuple enum per T_TUPLE entry in def_data.in.
Currently listpw, verifypw and lecture are tuples. This avoids the
need to have two entries (one ival, one str) for pwflags and syslog
values.
lecture is now a tuple with the following values: never, once, always
We no longer use both an int and string entry for syslog facilities
and priorities. Instead, there are logfac2str() and logpri2str()
functions that get used when we need to print the string values.
Todd C. Miller [Tue, 30 Dec 2003 22:20:21 +0000 (22:20 +0000)]
Create def_* macros for each defaults value so we no longer need
the def_{flag,ival,str,list,mode} macros (which have been removed).
This is a step toward more flexible data types in def_data.in.
Todd C. Miller [Tue, 30 Dec 2003 20:55:17 +0000 (20:55 +0000)]
checkpoint
Todd C. Miller [Tue, 23 Dec 2003 02:18:13 +0000 (02:18 +0000)]
If we are in -k/-K mode, just spew to stderr. It is not unusual for
users to place "sudo -k" in a .logout file which can cause sudo to
be run during reboot after the YP/NIS/NIS+/LDAP/etc daemon has died.
Previously, this would result in useless mail and logging.
Todd C. Miller [Tue, 16 Dec 2003 18:51:45 +0000 (18:51 +0000)]
fix pasto in VISUAL description
Todd C. Miller [Wed, 10 Dec 2003 03:09:00 +0000 (03:09 +0000)]
regen
Todd C. Miller [Wed, 10 Dec 2003 03:08:16 +0000 (03:08 +0000)]
checkpoint
Todd C. Miller [Wed, 10 Dec 2003 03:02:09 +0000 (03:02 +0000)]
Some OSes (like Solaris) allow export w/ nosuid too
Todd C. Miller [Tue, 12 Aug 2003 20:45:22 +0000 (20:45 +0000)]
We don't use FD_ZERO anymore so just define FD_SET (if not already there).
Todd C. Miller [Sun, 29 Jun 2003 01:31:55 +0000 (01:31 +0000)]
Fix a core dump on Solaris by preserving the pam_handle_t we used
during authentication for pam_prep_user(). If we didn't authenticate
(ie: ticket still valid), we call pam_init() from pam_prep_user().
This is something of a hack; it may be better to change the auth
API and add an auth_final() function that acts like pam_prep_user().
Todd C. Miller [Sat, 21 Jun 2003 16:50:56 +0000 (16:50 +0000)]
Add explicit declaration of printerr variable in function header
(was defaulting to int which is OK but oh so K&R :-). From Theo.
Todd C. Miller [Mon, 9 Jun 2003 23:00:20 +0000 (23:00 +0000)]
s/HAVE_STOW/USE_STOW/
Todd C. Miller [Mon, 9 Jun 2003 20:07:56 +0000 (20:07 +0000)]
Also exit waitpid() loop when pid == 0. Fixes a problem where the sudo
process would spin eating up CPU until sendmail finished when it has
to send mail.
Todd C. Miller [Fri, 30 May 2003 20:22:31 +0000 (20:22 +0000)]
Remove advertising clause, UCB has disavowed it
Todd C. Miller [Fri, 30 May 2003 20:22:31 +0000 (20:22 +0000)]
Remove advertising clause, UCB has disavowed it
Todd C. Miller [Thu, 22 May 2003 01:53:01 +0000 (01:53 +0000)]
Don't assume that getgrnam() calls don't modify contents of
struct passwd returned by getpwnam(). On FreeBSD w/ NIS this
can happen. Based on a patch from Kirk Webb.
Todd C. Miller [Tue, 6 May 2003 15:25:36 +0000 (15:25 +0000)]
missing ;;
Todd C. Miller [Tue, 6 May 2003 04:53:21 +0000 (04:53 +0000)]
darwin has a broken setreuid() in at least some versions
Todd C. Miller [Tue, 6 May 2003 04:31:24 +0000 (04:31 +0000)]
Fix an off by one error when reallocating the environment; Kevin Pye
Todd C. Miller [Wed, 30 Apr 2003 18:04:58 +0000 (18:04 +0000)]
Fix User_Spec definition; SEKINE Tatsuo
Todd C. Miller [Mon, 28 Apr 2003 23:30:32 +0000 (23:30 +0000)]
More info on the early days from Coggs.
Todd C. Miller [Mon, 21 Apr 2003 18:47:05 +0000 (18:47 +0000)]
remove errant semicolon that prevented compilation under heimdal
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:10 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:09 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:09 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:09 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:42:09 +0000 (00:42 +0000)]
add DARPA credit on affected files
Todd C. Miller [Wed, 16 Apr 2003 00:25:42 +0000 (00:25 +0000)]
slightly different wording for the darpa credit
Todd C. Miller [Tue, 15 Apr 2003 18:37:26 +0000 (18:37 +0000)]
Add DARPA credit
Todd C. Miller [Mon, 14 Apr 2003 20:49:27 +0000 (20:49 +0000)]
Use krb5_princ_component() instead of krb5_princ_realm() for MIT Kerberos
like we did before I messed things up ;-)
Use krb5_principal_get_comp_string() to do the same thing w/ Heimdal.
I'm not sure if the component should be 0 or 1 in this case.
#define ENCTYPE_DES_CBC_MD5 ETYPE_DES_CBC_MD5 for Heimdal since
older versions lack ENCTYPE_DES_CBC_MD5. This is gross and there
should be a configure check for this I guess.
Todd C. Miller [Sun, 13 Apr 2003 19:48:15 +0000 (19:48 +0000)]
builtin -> built-in; Jason McIntyre
Todd C. Miller [Sun, 13 Apr 2003 19:48:15 +0000 (19:48 +0000)]
builtin -> built-in; Jason McIntyre
Todd C. Miller [Sun, 13 Apr 2003 19:45:52 +0000 (19:45 +0000)]
built in -> built-in; Jason McIntyre
Todd C. Miller [Wed, 9 Apr 2003 20:14:39 +0000 (20:14 +0000)]
checkpoint for 1.6.7p3
Todd C. Miller [Wed, 9 Apr 2003 20:14:10 +0000 (20:14 +0000)]
Update info on the early years @ SUNY-Buffalo from Cliff Spencer.
Amazingly, sudo source from 1985 is available via groups.google.com
Todd C. Miller [Wed, 9 Apr 2003 20:13:04 +0000 (20:13 +0000)]
Don't change rl.rlim_max for RLIMIT_CORE. We need only set rl.rlim_cur
to 0 to turn off core dumps. This may be needed for the RLIMIT_CORE
restoration on some OSes.
Todd C. Miller [Fri, 4 Apr 2003 17:46:57 +0000 (17:46 +0000)]
Make this compile on Heimdal and MIT Kerberos 5
Todd C. Miller [Fri, 4 Apr 2003 17:45:24 +0000 (17:45 +0000)]
Check for heimdal even if we found krb5-config and define HAVE_HEIMDAL.
Todd C. Miller [Fri, 4 Apr 2003 03:04:09 +0000 (03:04 +0000)]
Replace ETYPE_DES_CBC_MD5 with ENCTYPE_DES_CBC_MD5. The former
is no longer defined by MIT kerb5 (though it used to be and indeed
remains so in Heimdal).
Todd C. Miller [Thu, 3 Apr 2003 15:16:22 +0000 (15:16 +0000)]
Remove newer stuff that passes multiple (possibly duplicate)
directories to "mkdir -p" since that seems to break on Tru64 Unix
at least. This basically brings back what shipped with sudo 1.6.6.
Todd C. Miller [Wed, 2 Apr 2003 18:57:34 +0000 (18:57 +0000)]
Correct number of args to krb5_principal_get_realm() and fix an unclosed
comment that hid the bug.
Todd C. Miller [Wed, 2 Apr 2003 18:45:43 +0000 (18:45 +0000)]
regen
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:45:35 +0000 (18:45 +0000)]
++version
Todd C. Miller [Wed, 2 Apr 2003 18:44:52 +0000 (18:44 +0000)]
use krb5-config to determine Kerberos V details if it exists
Todd C. Miller [Wed, 2 Apr 2003 18:25:30 +0000 (18:25 +0000)]
Use warn/err and getprogname() throughout. The main exception is
openlog(). Since the admin may be filtering logs based on the
program name in the log files, hard code this to "sudo".
Todd C. Miller [Wed, 2 Apr 2003 18:16:00 +0000 (18:16 +0000)]
Add getprogname.c and err.c
Todd C. Miller [Wed, 2 Apr 2003 18:15:32 +0000 (18:15 +0000)]
regen
Todd C. Miller [Wed, 2 Apr 2003 18:15:25 +0000 (18:15 +0000)]
Add checks for getprognam(), __progname and err.h
Todd C. Miller [Wed, 2 Apr 2003 18:14:57 +0000 (18:14 +0000)]
For systems withour err/warn functions.
Todd C. Miller [Wed, 2 Apr 2003 18:14:53 +0000 (18:14 +0000)]
For systems withour err/warn functions.
Todd C. Miller [Wed, 2 Apr 2003 18:14:32 +0000 (18:14 +0000)]
For systems neither getprogname() nor __progname; uses Argv[0].
Todd C. Miller [Tue, 1 Apr 2003 15:09:51 +0000 (15:09 +0000)]
checkpoint for 1.6.7p1
Todd C. Miller [Tue, 1 Apr 2003 15:02:49 +0000 (15:02 +0000)]
fix strlcpy() rval check (innocuous)