Make the `become' program setuid root when installing.
[become] / src / Makefile.am
index de36c99..effb91c 100644 (file)
@@ -1,11 +1,11 @@
 ## Process this file with `automake' to generate `Makefile.in'
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.6 1997/09/18 11:17:18 mdw Exp $
+## $Id: Makefile.am,v 1.9 1998/02/20 18:12:35 mdw Exp $
 ##
 ## Makefile for `become'
 ##
-## (c) 1997 EBI
+## (c) 1998 EBI
 ##
 
 ##----- Licensing notice ----------------------------------------------------
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## 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.
@@ -65,7 +79,7 @@ bcm_SOURCES = \
        class.c name.c netg.c rule.c sym.c userdb.c \
        crypt.c \
        noise.c rand.c \
-       icrypt.c idea.c md5.c \
+       icrypt.c blowfish.c md5.c \
        mdwopt.c tx.c utils.c \
        \
        become.h \
@@ -74,7 +88,7 @@ bcm_SOURCES = \
        class.h name.h netg.h rule.h sym.h userdb.h \
        crypt.h \
        noise.h rand.h \
-       icrypt.h idea.h md5.h \
+       icrypt.h blowfish.h blowfish-sbox.h md5.h \
        mdwopt.h tx.h utils.h \
        dbutils.h
 
@@ -102,6 +116,17 @@ keygen_SOURCES = keygen.c
 become_DEPENDENCIES = libbcm.a
 keygen_DEPENDENCIES = libbcm.a
 
+##----- Become must be setuid root ------------------------------------------
+
+install-data-hook:
+       become_prog=${bindir}/`echo become|sed '${transform}'`; \
+       { chown root $${become_prog} && \
+         chmod 4755 $${become_prog}; } || \
+       { echo ">>>>>"; \
+         echo ">>>>> $${become_prog} must be installed setuid-root"; \
+         echo ">>>>>"; \
+       }
+
 ##----- Testing -------------------------------------------------------------
 
 ## --- The test programs ---