## Process this file with `automake' to generate `Makefile.in'
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.4 2003/11/29 23:39:16 mdw Exp $
+## $Id: Makefile.am,v 1.5 2004/04/08 01:36:20 mdw Exp $
##
## Makefile for `become'
##
## along with `become'; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.4 2003/11/29 23:39:16 mdw
-## Debianization.
-##
-## Revision 1.3 1998/01/12 16:45:19 mdw
-## Fix copyright date.
-##
-## Revision 1.2 1997/09/18 11:23:11 mdw
-## Add `conf' directory.
-##
-## Revision 1.1 1997/08/07 09:31:51 mdw
-## Added new toplevel `Makefile.am' for the new `deep' package structure.
-##
-
##----- Just make the subdirectories ----------------------------------------
AUTOMAKE_OPTIONS = foreign
/* -*-c-*-
*
- * $Id: acconfig.h,v 1.11 2003/11/29 23:39:16 mdw Exp $
+ * $Id: acconfig.h,v 1.12 2004/04/08 01:36:20 mdw Exp $
*
* Default settings for `become' config.h
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: acconfig.h,v $
- * Revision 1.11 2003/11/29 23:39:16 mdw
- * Debianization.
- *
- * Revision 1.10 2003/10/12 00:14:44 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.9 1999/05/04 16:25:42 mdw
- * Fixes for new version of automake.
- *
- * Revision 1.8 1998/04/23 13:08:42 mdw
- * Fix formatting. Add new option to disable networking.
- *
- * Revision 1.7 1998/01/12 16:45:20 mdw
- * Fix copyright date.
- *
- * Revision 1.6 1997/09/17 10:02:07 mdw
- * Remove `@ signs -- autoconf mangles them too badly.
- *
- * Revision 1.5 1997/09/08 13:41:36 mdw
- * Remove redundant entry for `HAVE_LIBEFENCE'.
- *
- * Revision 1.4 1997/09/05 11:45:17 mdw
- * Add support for different login styles, and environment variable
- * manipulation in a safe and useful way.
- *
- * Revision 1.3 1997/08/07 09:33:05 mdw
- * Added `ElectricFence' support. Other minor cosmetic things.
- *
- * Revision 1.2 1997/08/04 10:24:19 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:52 mdw
- * Initial revision
- *
- */
-
#ifndef CONFIG_H
#define CONFIG_H
## Process this file with `automake' to generate `Makefile.in'
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.5 2003/11/29 23:39:16 mdw Exp $
+## $Id: Makefile.am,v 1.6 2004/04/08 01:36:20 mdw Exp $
##
## Makefile for `become'
##
## along with `become'; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.5 2003/11/29 23:39:16 mdw
-## Debianization.
-##
-## Revision 1.4 1999/05/04 16:18:39 mdw
-## Make sure the sample configuration gets distributed. (Automake changed
-## behaviour here.)
-##
-## Revision 1.3 1998/01/12 16:45:34 mdw
-## Fix copyright date.
-##
-## Revision 1.2 1997/09/18 11:15:14 mdw
-## Install a skeleton configuration file carefully.
-##
-## Revision 1.1 1997/08/20 16:27:02 mdw
-## New file.
-##
-
## --- Install configuration things ---
etcdir = @etcdir@
dnl -*-m4-*-
dnl
-dnl $Id: configure.in,v 1.20 2003/11/29 23:39:16 mdw Exp $
+dnl $Id: configure.in,v 1.21 2004/04/08 01:36:20 mdw Exp $
dnl
dnl Source for auto configuration for `become'
dnl
dnl along with `become'; if not, write to the Free Software Foundation,
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-dnl----- Revision history ---------------------------------------------------
-dnl
-dnl $Log: configure.in,v $
-dnl Revision 1.20 2003/11/29 23:39:16 mdw
-dnl Debianization.
-dnl
-dnl Revision 1.19 2003/10/12 00:14:44 mdw
-dnl Major overhaul. Now uses DSA signatures rather than the bogus symmetric
-dnl encrypt-and-hope thing. Integrated with mLib and Catacomb.
-dnl
-dnl Revision 1.18 1999/07/28 09:30:12 mdw
-dnl Use new-fangled mdw_TYPE_SSIZE_T macro.
-dnl
-dnl Revision 1.17 1999/05/04 16:25:19 mdw
-dnl Fixes for new version of automake.
-dnl
-dnl Revision 1.16 1998/06/18 15:15:45 mdw
-dnl Set version number properly. D'oh.
-dnl
-dnl Revision 1.15 1998/06/18 15:11:36 mdw
-dnl Change patchlevel. Check for @sigprocmask@, for improved @noise__shell@
-dnl function.
-dnl
-dnl Revision 1.14 1998/06/08 11:22:16 mdw
-dnl Step version number and date.
-dnl
-dnl Revision 1.13 1998/04/23 13:34:10 mdw
-dnl Release version.
-dnl
-dnl Revision 1.12 1998/04/23 13:09:24 mdw
-dnl Add new option to disable networking.
-dnl
-dnl Revision 1.11 1998/02/20 17:55:56 mdw
-dnl Fix default HTML directory.
-dnl
-dnl Revision 1.10 1998/01/12 16:45:21 mdw
-dnl Fix copyright date.
-dnl
-dnl Revision 1.9 1997/09/18 11:24:27 mdw
-dnl Add `conf' directory. Add an `htmldir' installation directory too.
-dnl
-dnl Revision 1.8 1997/09/17 10:36:30 mdw
-dnl Remove `set.c'. No longer necessary.
-dnl
-dnl Revision 1.7 1997/09/09 18:18:41 mdw
-dnl Check for setgroups(2), to see whether subsidiary group lists need to be
-dnl fiddled with.
-dnl
-dnl Revision 1.6 1997/09/08 13:41:14 mdw
-dnl Check for `setreuid' for changing permissions.
-dnl
-dnl Revision 1.5 1997/09/05 11:45:18 mdw
-dnl Add support for different login styles, and environment variable
-dnl manipulation in a safe and useful way.
-dnl
-dnl Revision 1.4 1997/08/20 16:10:56 mdw
-dnl Lowercase `mdw_' prefixes to macros. Add a `--with-etcdir=PATH'
-dnl option. Update `stamp-h' as required by the Automake docs (silly
-dnl me).
-dnl
-dnl Revision 1.3 1997/08/07 09:34:32 mdw
-dnl Added `ElectricFence' support, and support for the `deep' package
-dnl structure.
-dnl
-dnl Revision 1.2 1997/08/04 10:24:21 mdw
-dnl Sources placed under CVS control.
-dnl
-dnl Revision 1.1 1997/07/21 13:47:51 mdw
-dnl Initial revision
-dnl
-
AC_INIT(src/become.c)
AM_INIT_AUTOMAKE(become, 1.4.0)
AM_CONFIG_HEADER(config.h)
## Process this file with `automake' to generate `Makefile.in'
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.9 2003/11/29 23:39:16 mdw Exp $
+## $Id: Makefile.am,v 1.10 2004/04/08 01:36:20 mdw Exp $
##
## Makefile for `become'
##
## along with `become'; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.9 2003/11/29 23:39:16 mdw
-## Debianization.
-##
-## Revision 1.8 1999/05/04 16:24:42 mdw
-## Distribute the generated HTML files.
-##
-## Revision 1.7 1998/06/18 16:07:57 mdw
-## Fix installation of HTML files.
-##
-## Revision 1.6 1998/04/23 13:10:34 mdw
-## Add new file `texinice.tex' to the distribution.
-##
-## Revision 1.5 1998/01/20 14:48:18 mdw
-## Distribute gpl.texi. Ooops.
-##
-## Revision 1.4 1998/01/12 16:45:35 mdw
-## Fix copyright date.
-##
-## Revision 1.3 1997/09/24 13:02:00 mdw
-## Distribute stamp-html.in so that the HTML files don't get recreated
-## unnecessarily.
-##
-## Revision 1.2 1997/09/18 11:15:41 mdw
-## Build HTML documentation and install it.
-##
-## Revision 1.1 1997/08/07 09:35:34 mdw
-## Added trivial Makefiles. Better write some documentation.
-##
-
##----- Distribute the right things -----------------------------------------
htmldir = @htmldir@
\input texinfo @c -*-texinfo-*-
@c
-@c $Id: become.texi,v 1.7 2003/11/29 23:39:16 mdw Exp $
+@c $Id: become.texi,v 1.8 2004/04/08 01:36:20 mdw Exp $
@c
@c Documentation for `become'
@c
@c (c) 1998 EBI
@c
-@c ----- Revision history ---------------------------------------------------
-@c
-@c $Log: become.texi,v $
-@c Revision 1.7 2003/11/29 23:39:16 mdw
-@c Debianization.
-@c
-@c Revision 1.6 2003/10/26 11:57:46 mdw
-@c Fix key reloading core dumps. Change advice on keys.
-@c
-@c Revision 1.5 2003/10/12 00:14:49 mdw
-@c Major overhaul. Now uses DSA signatures rather than the bogus symmetric
-@c encrypt-and-hope thing. Integrated with mLib and Catacomb.
-@c
-@c Revision 1.4 1998/04/23 13:16:14 mdw
-@c Include `texinice' to produce decent printed output. Add documentation
-@c for new `bcquery' program. Various fixes, including spelling mistakes,
-@c and some factual inaccuracies.
-@c
-@c Revision 1.3 1998/01/20 14:37:43 mdw
-@c Fix typo. Short form of `--preserve' should be `-e', not `-p'.
-@c
-@c Revision 1.2 1998/01/12 16:41:31 mdw
-@c Tidying for new release versions. Fix copyright date.
-@c
-@c Revision 1.1 1997/09/18 11:16:34 mdw
-@c Brand new Texinfo manual, with wider scope than the original LaTeX one.
-@c
-
@c ----- Standard boilerplate -----------------------------------------------
@c %**start of header
## Process this file with `automake' to generate `Makefile.in'
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.16 2003/10/12 00:39:16 mdw Exp $
+## $Id: Makefile.am,v 1.17 2004/04/08 01:36:20 mdw Exp $
##
## Makefile for `become'
##
## along with `become'; if not, write to the Free Software Foundation,
## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##----- Revision history ----------------------------------------------------
-##
-## $Log: Makefile.am,v $
-## Revision 1.16 2003/10/12 00:39:16 mdw
-## Light fixes for strange building.
-##
-## Revision 1.15 2003/10/12 00:15:34 mdw
-## Fix to makefile install rules.
-##
-## Revision 1.14 2003/10/12 00:14:55 mdw
-## Major overhaul. Now uses DSA signatures rather than the bogus symmetric
-## encrypt-and-hope thing. Integrated with mLib and Catacomb.
-##
-## Revision 1.13 1999/05/04 16:50:59 mdw
-## Change library to `libbecome.a', for aesthetic reasons.
-##
-## Revision 1.12 1999/05/04 16:36:03 mdw
-## Changes for new Automake version.
-##
-## Revision 1.11 1998/06/18 15:52:05 mdw
-## Remove the IDEA test case.
-##
-## Revision 1.10 1998/04/23 13:17:17 mdw
-## New program `bcquery', and `ypstuff' module added.
-##
-## Revision 1.9 1998/02/20 18:12:35 mdw
-## Make the `become' program setuid root when installing.
-##
-## Revision 1.8 1998/01/12 16:45:36 mdw
-## Fix copyright date.
-##
-## Revision 1.7 1997/09/26 09:14:57 mdw
-## Merged blowfish branch into trunk.
-##
-## Revision 1.6.2.1 1997/09/26 09:07:56 mdw
-## Use the Blowfish encryption algorithm instead of IDEA. This is partly
-## because I prefer Blowfish (without any particularly strong evidence) but
-## mainly because IDEA is patented and Blowfish isn't.
-##
-## Revision 1.6 1997/09/18 11:17:18 mdw
-## Fix comment leaders. Don't know why this CVS keeps breaking them.
-## Could be DEC's bogus version of RCS being picked up.
-##
-## Revision 1.5 1997/09/17 10:28:25 mdw
-## Remove `set.c'. No longer necessary.
-##
-## Revision 1.4 1997/08/20 16:14:12 mdw
-## Build parser and lexer into the source directory. Other cosmetic
-## things.
-##
-## Revision 1.3 1997/08/07 09:39:36 mdw
-## Add new source files, and remove options inappropriate for subsidiary
-## Makefiles.
-##
-## Revision 1.2 1997/08/04 10:24:19 mdw
-## Sources placed under CVS control.
-##
-
##----- General setup things ------------------------------------------------
## --- What to make ---
/* -*-c-*-
*
- * $Id: bcquery.c,v 1.5 2003/11/29 23:39:16 mdw Exp $
+ * $Id: bcquery.c,v 1.6 2004/04/08 01:36:20 mdw Exp $
*
* Query and dump Become's configuration file
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: bcquery.c,v $
- * Revision 1.5 2003/11/29 23:39:16 mdw
- * Debianization.
- *
- * Revision 1.4 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.3 1999/05/04 16:17:11 mdw
- * Change to header file name for parser. See log for `parse.h' for
- * details.
- *
- * Revision 1.2 1998/06/26 10:32:31 mdw
- * Cosmetic change: use sizeof(destination) in memcpy.
- *
- * Revision 1.1 1998/04/23 13:20:20 mdw
- * Added new program to verify and query Become configuration files.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: become.c,v 1.25 2003/11/29 23:39:16 mdw Exp $
+ * $Id: become.c,v 1.26 2004/04/08 01:36:20 mdw Exp $
*
* Main code for `become'
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: become.c,v $
- * Revision 1.25 2003/11/29 23:39:16 mdw
- * Debianization.
- *
- * Revision 1.24 2003/10/15 09:27:06 mdw
- * Make sure standard file descriptors are open before starting properly.
- *
- * Revision 1.23 2003/10/12 10:00:06 mdw
- * Fix for daemon mode. Oops.
- *
- * Revision 1.22 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.21 1999/07/28 09:31:01 mdw
- * Empty path components are equivalent to `.'.
- *
- * Revision 1.20 1999/05/04 16:17:11 mdw
- * Change to header file name for parser. See log for `parse.h' for
- * details.
- *
- * Revision 1.19 1998/06/29 13:10:41 mdw
- * Add some commentary regarding an issue in `sudo' which affects `become';
- * I'm not fixing it yet because I don't think it's important.
- *
- * Fixed the PATH lookup code to use the right binary name: `binary' rather
- * than `todo[0]'. The two only differ when `style' is `l_login', in which
- * case `binary' has an initial `/' anyway, and the PATH lookup code is
- * never invoked. The name is used in a buffer-overflow precheck, though,
- * and auditing is easier if the naming is consistent.
- *
- * Revision 1.18 1998/06/26 10:32:54 mdw
- * Cosmetic change: use sizeof(destination) in memcpy.
- *
- * Revision 1.17 1998/06/18 15:06:59 mdw
- * Close log before execing program to avoid leaving a socket open.
- *
- * Revision 1.16 1998/04/23 13:21:04 mdw
- * Small tweaks. Support no-network configuration option, and rearrange
- * the help text a little.
- *
- * Revision 1.15 1998/01/13 11:10:44 mdw
- * Add `TZ' to the list of variables to be preserved.
- *
- * Revision 1.14 1998/01/12 16:45:39 mdw
- * Fix copyright date.
- *
- * Revision 1.13 1997/09/26 09:14:57 mdw
- * Merged blowfish branch into trunk.
- *
- * Revision 1.12 1997/09/25 16:04:48 mdw
- * Change directory after becoming someone else, instead of before. This
- * avoids problems with root-squashed NFS mounts.
- *
- * Revision 1.11.2.1 1997/09/26 09:07:58 mdw
- * Use the Blowfish encryption algorithm instead of IDEA. This is partly
- * because I prefer Blowfish (without any particularly strong evidence) but
- * mainly because IDEA is patented and Blowfish isn't.
- *
- * Revision 1.11 1997/09/24 09:48:45 mdw
- * Fix (scary) overrun bug in group allocation stuff.
- *
- * Revision 1.10 1997/09/17 10:14:10 mdw
- * Fix a typo. Support service names in `--port' option.
- *
- * Revision 1.9 1997/09/10 10:28:05 mdw
- * Allow default port to be given as a service name or port number. Handle
- * groups properly (lots of options here).
- *
- * Revision 1.8 1997/09/08 13:56:24 mdw
- * Change criteria for expunging items from the user's PATH: instead of
- * removing things starting with `.', remove things not starting with `/'.
- *
- * Revision 1.7 1997/09/08 13:43:20 mdw
- * Change userid when creating tracefiles rather than fiddling with
- * `access': it works rather better. Also, insert some stdio buffer
- * flushing to ensure tracedumps are completely written.
- *
- * Revision 1.6 1997/09/05 13:47:44 mdw
- * Make the `-L' (trace-level) option's argument optional, like the long
- * version is.
- *
- * Revision 1.5 1997/09/05 11:45:19 mdw
- * Add support for different login styles, and environment variable
- * manipulation in a safe and useful way.
- *
- * Revision 1.4 1997/08/20 16:15:13 mdw
- * Overhaul of environment handling. Fix daft bug in path search code.
- *
- * Revision 1.3 1997/08/07 16:28:59 mdw
- * Do something useful when users attempt to become themselves.
- *
- * Revision 1.2 1997/08/04 10:24:20 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:54 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: become.h,v $
- * Revision 1.4 2003/11/29 23:39:16 mdw
- * Debianization.
- *
- * Revision 1.3 1998/04/23 13:21:28 mdw
- * Disable trace constants for networking when it's not compiled in.
- *
- * Revision 1.2 1998/01/12 16:45:42 mdw
- * Fix copyright date.
- *
- * Revision 1.1 1997/08/07 09:40:01 mdw
- * Added. No idea why this wasn't done before.
- *
- */
-
#ifndef BECOME_H
#define BECOME_H
/* -*-c-*-
*
- * $Id: check.c,v 1.12 2003/11/29 23:39:16 mdw Exp $
+ * $Id: check.c,v 1.13 2004/04/08 01:36:20 mdw Exp $
*
* Check validity of requests
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: check.c,v $
- * Revision 1.12 2003/11/29 23:39:16 mdw
- * Debianization.
- *
- * Revision 1.11 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.10 1999/05/04 16:17:12 mdw
- * Change to header file name for parser. See log for `parse.h' for
- * details.
- *
- * Revision 1.9 1998/06/19 13:48:16 mdw
- * Set close-on-exec flag for UDP socket.
- *
- * Revision 1.8 1998/06/18 15:10:44 mdw
- * SECURITY HOLE: the file descriptor for the secret key was left open and
- * inherited by the target process. This is now fixed. Also set
- * close-on-exec flags on key file, close config file carefully, and close
- * UDP socket after receiving reply from server.
- *
- * Revision 1.7 1998/04/23 13:22:08 mdw
- * Support no-network configuration option, and new interface to
- * configuration file parser.
- *
- * Revision 1.6 1998/01/12 16:45:47 mdw
- * Fix copyright date.
- *
- * Revision 1.5 1997/09/26 09:14:58 mdw
- * Merged blowfish branch into trunk.
- *
- * Revision 1.4.2.1 1997/09/26 09:08:01 mdw
- * Use the Blowfish encryption algorithm instead of IDEA. This is partly
- * because I prefer Blowfish (without any particularly strong evidence) but
- * mainly because IDEA is patented and Blowfish isn't.
- *
- * Revision 1.4 1997/08/07 09:52:05 mdw
- * (Log entry for previous version is bogus.) Added support for multiple
- * servers.
- *
- * Revision 1.2 1997/08/04 10:24:20 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:53 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: check.h,v 1.3 1998/01/12 16:45:48 mdw Exp $
+ * $Id: check.h,v 1.4 2004/04/08 01:36:20 mdw Exp $
*
* Check validity of requests
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: check.h,v $
- * Revision 1.3 1998/01/12 16:45:48 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/04 10:24:21 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:52 mdw
- * Initial revision
- *
- */
-
#ifndef CHECK_H
#define CHECK_H
/* -*-c-*-
*
- * $Id: class.c,v 1.9 2003/10/12 00:14:55 mdw Exp $
+ * $Id: class.c,v 1.10 2004/04/08 01:36:20 mdw Exp $
*
* Handling classes of things nicely
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: class.c,v $
- * Revision 1.9 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.8 1998/06/08 11:20:36 mdw
- * (class__wildMatch) Fixed bug which overran pattern string, spotted by
- * Mark Rison.
- *
- * Revision 1.7 1998/01/12 16:45:50 mdw
- * Fix copyright date.
- *
- * Revision 1.6 1997/09/17 10:14:56 mdw
- * Complete rewrite to support class trees. Makes the behaviour of the set
- * operators much more logical.
- *
- * Revision 1.5 1997/08/20 16:16:13 mdw
- * Patch memory leak. Don't try to trace when tracing's turned off.
- *
- * Revision 1.4 1997/08/07 09:56:37 mdw
- * (Log entry for previous version is bogus.) Minor changes to host
- * checking code.
- *
- * Revision 1.2 1997/08/04 10:24:21 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:52 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: class.h,v 1.6 2003/10/12 00:14:55 mdw Exp $
+ * $Id: class.h,v 1.7 2004/04/08 01:36:20 mdw Exp $
*
* Handling classes of things nicely
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: class.h,v $
- * Revision 1.6 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.5 1998/04/23 13:22:44 mdw
- * Fix value of clNode_binop, required for bcquery.
- *
- * Revision 1.4 1998/01/12 16:45:53 mdw
- * Fix copyright date.
- *
- * Revision 1.3 1997/09/17 10:14:56 mdw
- * Complete rewrite to support class trees. Makes the behaviour of the set
- * operators much more logical.
- *
- * Revision 1.2 1997/08/04 10:24:21 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:52 mdw
- * Initial revision
- *
- */
-
#ifndef CLASS_H
#define CLASS_H
/* -*-c-*-
*
- * $Id: daemon.c,v 1.16 2003/11/29 23:39:16 mdw Exp $
+ * $Id: daemon.c,v 1.17 2004/04/08 01:36:20 mdw Exp $
*
* Running a `become' daemon
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: daemon.c,v $
- * Revision 1.16 2003/11/29 23:39:16 mdw
- * Debianization.
- *
- * Revision 1.15 2003/10/26 11:57:46 mdw
- * Fix key reloading core dumps. Change advice on keys.
- *
- * Revision 1.14 2003/10/17 16:30:22 mdw
- * Reload keys and config files automatically.
- *
- * Revision 1.13 2003/10/12 10:00:06 mdw
- * Fix for daemon mode. Oops.
- *
- * Revision 1.12 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.11 1999/05/04 16:17:12 mdw
- * Change to header file name for parser. See log for `parse.h' for
- * details.
- *
- * Revision 1.10 1998/04/23 13:23:09 mdw
- * Support new interface to configuration file parser.
- *
- * Revision 1.9 1998/01/12 16:45:59 mdw
- * Fix copyright date.
- *
- * Revision 1.8 1997/09/26 09:14:58 mdw
- * Merged blowfish branch into trunk.
- *
- * Revision 1.7.2.1 1997/09/26 09:08:05 mdw
- * Use the Blowfish encryption algorithm instead of IDEA. This is partly
- * because I prefer Blowfish (without any particularly strong evidence) but
- * mainly because IDEA is patented and Blowfish isn't.
- *
- * Revision 1.7 1997/09/17 10:23:23 mdw
- * Fix a typo. Port numbers are in network order now, so don't change them.
- *
- * Revision 1.6 1997/09/09 18:17:06 mdw
- * Allow default port to be given as a service name or port number.
- *
- * Revision 1.5 1997/08/20 16:17:10 mdw
- * More sensible restart routine: `_reinit' functions replaced by `_end' and
- * `_init' functions.
- *
- * Revision 1.4 1997/08/07 10:00:37 mdw
- * (Log entry for previous version is bogus.) Read netgroups database.
- * Give up privileges permanently on startup.
- *
- * Revision 1.2 1997/08/04 10:24:21 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:50 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: daemon.h,v 1.4 2003/10/12 10:00:06 mdw Exp $
+ * $Id: daemon.h,v 1.5 2004/04/08 01:36:20 mdw Exp $
*
* Running a `become' daemon
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: daemon.h,v $
- * Revision 1.4 2003/10/12 10:00:06 mdw
- * Fix for daemon mode. Oops.
- *
- * Revision 1.3 1998/01/12 16:46:01 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/04 10:24:21 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:50 mdw
- * Initial revision
- *
- */
-
#ifndef DAEMON_H
#define DAEMON_H
/* -*-c-*-
*
- * $Id: dbutils.h,v 1.5 1998/01/12 16:43:29 mdw Exp $
+ * $Id: dbutils.h,v 1.6 2004/04/08 01:36:20 mdw Exp $
*
* Debugging things
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: dbutils.h,v $
- * Revision 1.5 1998/01/12 16:43:29 mdw
- * Include required header files. Fix copyright date.
- *
- * Revision 1.4 1997/08/07 10:01:46 mdw
- * (Log entry for previous version is bogus.) No changes made.
- *
- * Revision 1.2 1997/08/04 10:24:22 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:50 mdw
- * Initial revision
- *
- */
-
#ifndef DBUTILS_H
#define DBUTILS_H
/* -*-c-*-
*
- * $Id: lexer.h,v 1.3 1998/01/12 16:46:07 mdw Exp $
+ * $Id: lexer.h,v 1.4 2004/04/08 01:36:20 mdw Exp $
*
* Lexical analyser for `become.conf' files
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lexer.h,v $
- * Revision 1.3 1998/01/12 16:46:07 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/04 10:24:23 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:48 mdw
- * Initial revision
- *
- */
-
#ifndef LEXER_H
#define LEXER_H
/* -*-c-*-
*
- * $Id: lexer.l,v 1.6 2003/10/12 15:22:01 mdw Exp $
+ * $Id: lexer.l,v 1.7 2004/04/08 01:36:20 mdw Exp $
*
* Lexical analyser for `become.conf' files
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lexer.l,v $
- * Revision 1.6 2003/10/12 15:22:01 mdw
- * Add a header, kill a warning.
- *
- * Revision 1.5 2003/10/12 00:29:10 mdw
- * Missed an old include...
- *
- * Revision 1.4 1999/05/04 16:17:26 mdw
- * Change to header file name for parser. See log for `parse.h' for
- * details.
- *
- * Revision 1.3 1998/01/12 16:46:07 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/04 10:24:23 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:48 mdw
- * Initial revision
- *
- */
-
/*----- Declarations section ----------------------------------------------*/
/* --- Header files --- */
/* -*-c-*-
*
- * $Id: name.c,v 1.9 2003/10/12 00:39:16 mdw Exp $
+ * $Id: name.c,v 1.10 2004/04/08 01:36:20 mdw Exp $
*
* Looking up of names in symbol tables
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: name.c,v $
- * Revision 1.9 2003/10/12 00:39:16 mdw
- * Light fixes for strange building.
- *
- * Revision 1.8 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.7 1998/04/23 13:23:56 mdw
- * Fix bugs involving empty classes.
- *
- * Revision 1.6 1998/01/12 16:46:14 mdw
- * Fix copyright date.
- *
- * Revision 1.5 1997/09/17 10:26:11 mdw
- * Use rewritten class handler. Support `none' class.
- *
- * Revision 1.4 1997/08/20 16:17:59 mdw
- * Replace `name_reinit' by `name_end' for more sensible restart.
- *
- * Revision 1.3 1997/08/07 09:49:39 mdw
- * Extensive modifications to handle netgroups. Also sanitise user and group
- * names before adding them to the symbol table.
- *
- * Revision 1.2 1997/08/04 10:24:24 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:46 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: name.h,v 1.7 2003/10/12 00:14:55 mdw Exp $
+ * $Id: name.h,v 1.8 2004/04/08 01:36:20 mdw Exp $
*
* Looking up of names in symbol tables
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: name.h,v $
- * Revision 1.7 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.6 1998/04/23 13:24:21 mdw
- * Fix multiple inclusion guard macro name.
- *
- * Revision 1.5 1998/01/12 16:46:15 mdw
- * Fix copyright date.
- *
- * Revision 1.4 1997/09/17 10:26:11 mdw
- * Use rewritten class handler. Support `none' class.
- *
- * Revision 1.3 1997/08/20 16:18:05 mdw
- * Replace `name_reinit' by `name_end' for more sensible restart.
- *
- * Revision 1.2 1997/08/04 10:24:24 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:46 mdw
- * Initial revision
- *
- */
-
#ifndef NAME_H
#define NAME_H
/* -*-c-*-
*
- * $Id: netg.c,v 1.6 2003/10/12 00:39:16 mdw Exp $
+ * $Id: netg.c,v 1.7 2004/04/08 01:36:20 mdw Exp $
*
* A local database of netgroups
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: netg.c,v $
- * Revision 1.6 2003/10/12 00:39:16 mdw
- * Light fixes for strange building.
- *
- * Revision 1.5 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.4 1998/04/23 13:24:49 mdw
- * Switch to using the ypstuff interface to YP server.
- *
- * Revision 1.3 1998/01/12 16:46:17 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/20 16:19:11 mdw
- * Patch memory leak. Replace `name_reinit' by `name_end' for more sensible
- * restart. Don't try to trace when tracing's turned off.
- *
- * Revision 1.1 1997/08/07 09:45:00 mdw
- * New source file added to maintain a netgroups database.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: netg.h,v 1.4 2003/10/12 00:14:55 mdw Exp $
+ * $Id: netg.h,v 1.5 2004/04/08 01:36:20 mdw Exp $
*
* A local database of netgroups
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
- /*----- Revision history --------------------------------------------------*
- *
- * $Log: netg.h,v $
- * Revision 1.4 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.3 1998/01/12 16:46:18 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/20 16:19:24 mdw
- * Replace `name_reinit' by `name_end' for more sensible restart.
- *
- * Revision 1.1 1997/08/07 09:45:00 mdw
- * New source file added to maintain a netgroups database.
- *
- */
-
#ifndef NETG_H
#define NETG_H
/* -*-c-*-
*
- * $Id: parse.h,v 1.2 1999/07/28 09:31:13 mdw Exp $
+ * $Id: parse.h,v 1.3 2004/04/08 01:36:20 mdw Exp $
*
* Parser for `become.conf' files
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: parse.h,v $
- * Revision 1.2 1999/07/28 09:31:13 mdw
- * Remove blank line.
- *
- * Revision 1.1 1999/05/04 16:30:57 mdw
- * This file used to be `parser.h'. It's been renamed because Automake
- * wants to use `parser.h' as the Yacc-generated header file. Look at
- * `parser.h' if you want to see how old versions looked (they're not very
- * interesting.)
- *
- * --- Previous lives ---
- *
- * %Log: parser.h,v %
- * Revision 1.4 1998/04/23 13:26:11 mdw
- * New `parse' interface to configuration file parser; informs caller
- * whether parsing encountered any errors.
- *
- * Revision 1.3 1998/01/12 16:46:21 mdw
- * Fix copyright date.
- *
- * Revision 1.2 1997/08/04 10:24:24 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:46 mdw
- * Initial revision
- *
- */
-
#ifndef PARSER_H
#define PARSER_H
/* -*-c-*-
*
- * $Id: parser.y,v 1.8 2003/10/12 00:14:55 mdw Exp $
+ * $Id: parser.y,v 1.9 2004/04/08 01:36:20 mdw Exp $
*
* Parser for `become.conf' files
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: parser.y,v $
- * Revision 1.8 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.7 1999/03/26 15:25:22 mdw
- * Insert some missing semicolons. Bison didn't seem to care, but other
- * programs like `yyextract' do, so it's worth fixing.
- *
- * Revision 1.6 1998/04/23 13:26:49 mdw
- * New `parse' interface to configuration file parser; informs caller
- * whether parsing encountered any errors. Also support no-network
- * configuration.
- *
- * Revision 1.5 1998/01/12 16:46:22 mdw
- * Fix copyright date.
- *
- * Revision 1.4 1997/09/17 10:26:52 mdw
- * Use rewritten class handler. Makes the expression parsers considerably
- * simpler.
- *
- * Revision 1.3 1997/09/09 18:17:06 mdw
- * Allow default port to be given as a service name or port number.
- *
- * Revision 1.2 1997/08/04 10:24:24 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:45 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
%{
/* -*-c-*-
*
- * $Id: rule.c,v 1.7 2003/10/12 00:14:55 mdw Exp $
+ * $Id: rule.c,v 1.8 2004/04/08 01:36:20 mdw Exp $
*
* Managing rule sets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: rule.c,v $
- * Revision 1.7 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.6 1998/04/23 13:27:31 mdw
- * Export structure of the rule list, for `bcquery's benefit.
- *
- * Revision 1.5 1998/01/12 16:46:25 mdw
- * Fix copyright date.
- *
- * Revision 1.4 1997/09/17 10:27:17 mdw
- * Use rewritten class handler.
- *
- * Revision 1.3 1997/08/20 16:22:36 mdw
- * Rename `rule_reinit' to `rule_end' for more sensible restart. Don't try
- * to trace when tracing's turned off.
- *
- * Revision 1.2 1997/08/04 10:24:25 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:45 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: rule.h,v 1.6 1998/04/23 13:27:31 mdw Exp $
+ * $Id: rule.h,v 1.7 2004/04/08 01:36:20 mdw Exp $
*
* Managing rule sets
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: rule.h,v $
- * Revision 1.6 1998/04/23 13:27:31 mdw
- * Export structure of the rule list, for `bcquery's benefit.
- *
- * Revision 1.5 1998/01/12 16:46:26 mdw
- * Fix copyright date.
- *
- * Revision 1.4 1997/09/17 10:27:17 mdw
- * Use rewritten class handler.
- *
- * Revision 1.3 1997/08/20 16:22:49 mdw
- * Rename `rule_reinit' to `rule_end' for more sensible restart.
- *
- * Revision 1.2 1997/08/04 10:24:25 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:45 mdw
- * Initial revision
- *
- */
-
#ifndef RULE_H
#define RULE_H
/* -*-c-*-
*
- * $Id: userdb.c,v 1.10 2003/10/12 00:39:16 mdw Exp $
+ * $Id: userdb.c,v 1.11 2004/04/08 01:36:20 mdw Exp $
*
* User database management
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: userdb.c,v $
- * Revision 1.10 2003/10/12 00:39:16 mdw
- * Light fixes for strange building.
- *
- * Revision 1.9 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.8 1998/06/08 11:21:22 mdw
- * Fixed bug in password and group file reading: strtok doesn't handle
- * double colons nicely.
- *
- * Revision 1.7 1998/04/23 13:27:46 mdw
- * Switch to using the ypstuff interface to YP server.
- *
- * Revision 1.6 1998/01/12 16:46:33 mdw
- * Fix copyright date.
- *
- * Revision 1.5 1997/09/17 10:24:08 mdw
- * Use `uid_t' instead of `int' for uids and gids. Not quite sure why I
- * didn't do this before.
- *
- * Revision 1.4 1997/08/20 16:24:58 mdw
- * Patch memory leak. Rename `userdb_reinit' to `userdb_end' for more
- * sensible restart.
- *
- * Revision 1.3 1997/08/07 09:44:29 mdw
- * Read NIS-based passwords from the YP server directly, rather than using
- * `popen(ypcat)', which is probably both slower and less secure.
- *
- * Revision 1.2 1997/08/04 10:24:26 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:43 mdw
- * Initial revision
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: userdb.h,v $
- * Revision 1.5 2003/10/12 00:14:55 mdw
- * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
- * encrypt-and-hope thing. Integrated with mLib and Catacomb.
- *
- * Revision 1.4 1998/01/12 16:46:38 mdw
- * Fix copyright date.
- *
- * Revision 1.3 1997/08/20 16:25:08 mdw
- * Rename `userdb_reinit' to `userdb_end' for more sensible restart.
- *
- * Revision 1.2 1997/08/04 10:24:26 mdw
- * Sources placed under CVS control.
- *
- * Revision 1.1 1997/07/21 13:47:42 mdw
- * Initial revision
- *
- */
-
#ifndef USERDB_H
#define USERDB_H
/* -*-c-*-
*
- * $Id: ypstuff.c,v 1.1 1998/04/23 13:29:33 mdw Exp $
+ * $Id: ypstuff.c,v 1.2 2004/04/08 01:36:20 mdw Exp $
*
* YP support functions
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: ypstuff.c,v $
- * Revision 1.1 1998/04/23 13:29:33 mdw
- * New interface to YP server. Only bind once, and never unbind.
- * Introduced because Linux libc-5.4.33's YP interface dumps core in
- * yp_unbind for no particularly good reason.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
/* --- ANSI headers --- */
/* -*-c-*-
*
- * $Id: ypstuff.h,v 1.1 1998/04/23 13:29:33 mdw Exp $
+ * $Id: ypstuff.h,v 1.2 2004/04/08 01:36:20 mdw Exp $
*
* YP support functions
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: ypstuff.h,v $
- * Revision 1.1 1998/04/23 13:29:33 mdw
- * New interface to YP server. Only bind once, and never unbind.
- * Introduced because Linux libc-5.4.33's YP interface dumps core in
- * yp_unbind for no particularly good reason.
- *
- */
-
#ifndef YPSTUFF_H
#define YPSTUFF_H