[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: PAM-Kerberos problems



On Fri, Jun 11, 1999 at 06:20:44PM -0400, Matt Drown wrote:
> included is my minor patch I used to build the krb5 module for the dhp
> distribution that we use.  Basically you need to give it /usr/lib/libc.so
> as part of the linking, and it all works.

pam_krb isn't the single module which have some problems.  I've seen the same
problems with other modules too (don't remember exactly which).
With glibc you must pass `-lc' switch to a linker to make a dynamically loading
module.

I use the attached patch to solve this problem for all modules and adjust
making process according to my taste :-)

Best regards
					Andrey V.
					Savochkin
diff -ruN Linux-PAM-0.65.orig/Makefile Linux-PAM-0.65/Makefile
--- Linux-PAM-0.65.orig/Makefile	Mon Apr  6 10:28:43 1998
+++ Linux-PAM-0.65/Makefile	Thu Apr 16 16:56:24 1998
@@ -60,6 +60,10 @@
 # Mode to install shared libraries with
 SHLIBMODE=644
 
+# Install options for setuid-root binaries
+SUID_INSTALL_OPT=-m 4555 -o root -g root
+
+
 #
 # Conditional defines..
 #
@@ -159,6 +163,7 @@
 export CFLAGS			# CC flags used to compile everything
 export LD_D			# build a shared object file (module)
 export LD_L			# build a shared library (e.g. libpam)
+export LD_SH_POSTFIX		# a postfix building a shared object or library
 export USESONAME		# does shlib link command require soname option
 export SOSWITCH			# shlib lib soname switch name
 export NEEDSONAME		# does shared library link need versioned lib
@@ -170,6 +175,7 @@
 export PAMLIB			# where to find the local libpam.xx file
 export DYNTYPE			# which suffix is used for libraries
 export SHLIBMODE		# file mode for shared objects
+export SUID_INSTALL_OPT		# install options for suid-root binaries
 #
 # where to install things
 #
@@ -178,6 +184,7 @@
 export PREFIX			# basic prefix for all other directories
 export SUPLEMENTED		# where to store module helper binaries
 export LIBDIR			# where libpam and libpam_misc go
+export DEVELLIBDIR		# where .a and .so libraries go
 export SECUREDIR		# where the modules will be placed
 export INCLUDED			# where to store pam---.h files
 export CONFIGED			# where pam.conf and pam.d/ go
diff -ruN Linux-PAM-0.65.orig/default.defs Linux-PAM-0.65/default.defs
--- Linux-PAM-0.65.orig/default.defs	Thu Jan 15 00:48:17 1998
+++ Linux-PAM-0.65/default.defs	Thu Apr 16 16:56:24 1998
@@ -17,7 +17,8 @@
 ULIBS=#-lefence
 LD=ld
 LD_D=gcc -shared -Xlinker -x
-LD_L=$(LD) -x -shared 
+LD_L=$(LD) -x -shared
+LD_SH_POSTFIX=
 USESONAME=yes
 SOSWITCH=-soname
 NEEDSONAME=no
@@ -28,6 +29,7 @@
 PREFIX=
 SUPLEMENTED=$(PREFIX)/sbin
 LIBDIR=$(PREFIX)/lib
+DEVELLIBDIR=$(LIBDIR)
 SECUREDIR=$(LIBDIR)/security
 INCLUDED=/usr/include/security
 CONFIGED=/etc
diff -ruN Linux-PAM-0.65.orig/defs/gbg.defs Linux-PAM-0.65/defs/gbg.defs
--- Linux-PAM-0.65.orig/defs/gbg.defs	Thu Jan  1 03:00:00 1970
+++ Linux-PAM-0.65/defs/gbg.defs	Thu Apr 16 16:56:24 1998
@@ -0,0 +1,34 @@
+# this file indicates the compiler and the various hardware/OS dependent
+# flags for installation. It also defines the various destinations of
+# installed files on the system.
+#
+# This file is the version used for Grey Belt Linux.
+#
+# ARCH is leaved empty; the compiler knows better.
+
+OS=linux
+ARCH=
+CC=gcc
+INSTALL=install
+MKDIR=mkdir -p
+CFLAGS=$(COPTFLAGS) -pipe -g -Dlinux
+ULIBS=
+LD=ld
+LD_D=gcc -g -shared -Xlinker -x
+LD_L=gcc -g -shared -Xlinker -x
+LD_SH_POSTFIX=-lc
+USESONAME=yes
+SOSWITCH=-Xlinker -soname -Xlinker
+NEEDSONAME=no
+LDCONFIG=
+AR=ar -cr
+RANLIB=ranlib
+PREFIX=/usr
+SUPLEMENTED=/sbin
+LIBDIR=/lib
+DEVELLIBDIR=$(PREFIX)/lib
+SECUREDIR=$(LIBDIR)/security
+INCLUDED=$(PREFIX)/include/security
+CONFIGED=/etc
+SCONFIGED=/etc/security
+SUID_INSTALL_OPT=-m0755
diff -ruN Linux-PAM-0.65.orig/defs/hpux.defs Linux-PAM-0.65/defs/hpux.defs
--- Linux-PAM-0.65.orig/defs/hpux.defs	Fri Jan 23 07:58:41 1998
+++ Linux-PAM-0.65/defs/hpux.defs	Thu Apr 16 16:56:24 1998
@@ -18,6 +18,7 @@
 LD=ld                                      
 LD_D=$(LD) -b
 LD_L=$(LD) -b
+LD_SH_POSTFIX=
 USESONAME=no
 NEEDSONAME=no
 LDCONFIG=:
@@ -27,6 +28,7 @@
 PREFIX=/usr
 SUPLEMENTED=$(PREFIX)/sbin
 LIBDIR=$(PREFIX)/lib
+DEVELLIBDIR=$(LIBDIR)
 SECUREDIR=$(LIBDIR)/security
 INCLUDED=/usr/include/security
 CONFIGED=/etc
diff -ruN Linux-PAM-0.65.orig/defs/linux.defs Linux-PAM-0.65/defs/linux.defs
--- Linux-PAM-0.65.orig/defs/linux.defs	Thu Jan 15 00:48:53 1998
+++ Linux-PAM-0.65/defs/linux.defs	Thu Apr 16 16:56:24 1998
@@ -15,6 +15,7 @@
 LD=ld
 LD_D=gcc -shared -Xlinker -x
 LD_L=$(LD) -x -shared 
+LD_SH_POSTFIX=
 USESONAME=yes
 SOSWITCH=-soname
 NEEDSONAME=no
@@ -25,6 +26,7 @@
 PREFIX=/usr
 SUPLEMENTED=$(PREFIX)/sbin
 LIBDIR=$(PREFIX)/lib
+DEVELLIBDIR=$(LIBDIR)
 SECUREDIR=$(LIBDIR)/security
 INCLUDED=/usr/include/security
 CONFIGED=/etc
diff -ruN Linux-PAM-0.65.orig/defs/morgan.defs Linux-PAM-0.65/defs/morgan.defs
--- Linux-PAM-0.65.orig/defs/morgan.defs	Sun Feb  1 01:51:17 1998
+++ Linux-PAM-0.65/defs/morgan.defs	Thu Apr 16 16:56:24 1998
@@ -18,7 +18,8 @@
 #-lefence
 LD=ld
 LD_D=gcc -shared -Xlinker -x
-LD_L=$(LD) -x -shared 
+LD_L=$(LD) -x -shared
+LD_SH_POSTFIX=
 USESONAME=yes
 SOSWITCH=-soname
 NEEDSONAME=no
diff -ruN Linux-PAM-0.65.orig/defs/redhat.defs Linux-PAM-0.65/defs/redhat.defs
--- Linux-PAM-0.65.orig/defs/redhat.defs	Thu Jan 15 00:48:17 1998
+++ Linux-PAM-0.65/defs/redhat.defs	Thu Apr 16 16:56:24 1998
@@ -17,7 +17,8 @@
 ULIBS=#-lefence
 LD=ld
 LD_D=gcc -shared -Xlinker -x
-LD_L=$(LD) -x -shared 
+LD_L=$(LD) -x -shared
+LD_SH_POSTFIX=
 USESONAME=yes
 SOSWITCH=-soname
 NEEDSONAME=no
@@ -28,6 +29,7 @@
 PREFIX=
 SUPLEMENTED=$(PREFIX)/sbin
 LIBDIR=$(PREFIX)/lib
+DEVELLIBDIR=$(LIBDIR)
 SECUREDIR=$(LIBDIR)/security
 INCLUDED=/usr/include/security
 CONFIGED=/etc
diff -ruN Linux-PAM-0.65.orig/defs/solaris.defs Linux-PAM-0.65/defs/solaris.defs
--- Linux-PAM-0.65.orig/defs/solaris.defs	Fri Feb 20 08:53:05 1998
+++ Linux-PAM-0.65/defs/solaris.defs	Thu Apr 16 16:56:24 1998
@@ -31,6 +31,7 @@
 LD=ld                                      
 LD_L=$(LD) -G 
 LD_D=$(LD_L)
+LD_SH_POSTFIX=
 RDYNAMIC=
 USESONAME=yes
 SOSWITCH=-h
@@ -42,6 +43,7 @@
 PREFIX=/usr
 SUPLEMENTED=$(PREFIX)/sbin
 LIBDIR=$(PREFIX)/lib
+DEVELLIBDIR=$(LIBDIR)
 SECUREDIR=$(LIBDIR)/security
 INCLUDED=/usr/include/security
 CONFIGED=/etc
diff -ruN Linux-PAM-0.65.orig/defs/sunos.defs Linux-PAM-0.65/defs/sunos.defs
--- Linux-PAM-0.65.orig/defs/sunos.defs	Thu Jan 15 00:49:07 1998
+++ Linux-PAM-0.65/defs/sunos.defs	Thu Apr 16 16:56:24 1998
@@ -18,6 +18,7 @@
 LD_D=gcc -shared -Xlinker -x  
 LD=ld                                      
 LD_L=$(LD)
+LD_SH_POSTFIX=
 USESONAME=no
 NEEDSONAME=yes
 LDCONFIG=/usr/etc/ldconfig
diff -ruN Linux-PAM-0.65.orig/libpam/Makefile Linux-PAM-0.65/libpam/Makefile
--- Linux-PAM-0.65.orig/libpam/Makefile	Mon Apr  6 08:16:24 1998
+++ Linux-PAM-0.65/libpam/Makefile	Thu Apr 16 16:58:55 1998
@@ -118,9 +118,9 @@
 $(LIBPAM): $(DLIBOBJECTS)
 ifdef DYNAMIC_LIBPAM
     ifeq ($(USESONAME),yes)
-	$(LD_L) $(SOSWITCH) $(LIBPAMNAME) -o $@ $(DLIBOBJECTS) $(MODULES)
+	$(LD_L) $(SOSWITCH) $(LIBPAMNAME) -o $@ $(DLIBOBJECTS) $(MODULES)  $(LD_SH_POSTFIX)
     else
-	$(LD_L) -o $@ $(DLIBOBJECTS) $(MODULES)
+	$(LD_L) -o $@ $(DLIBOBJECTS) $(MODULES) $(LD_SH_POSTFIX)
     endif
     ifeq ($(NEEDSONAME),yes)
 	rm -f $(LIBPAMFULL)
@@ -150,11 +150,15 @@
 	$(INSTALL) -m $(SHLIBMODE) $(LIBPAM) $(FAKEROOT)$(LIBDIR)/$(LIBPAMFULL)
 	$(LDCONFIG)
   ifneq ($(DYNTYPE),"sl")
+    ifeq ($(LIBDIR),$(DEVELLIBDIR))
 	( cd $(FAKEROOT)$(LIBDIR) ; rm -f $(LIBPAM) ; ln -s $(LIBPAMNAME) $(LIBPAM) )
+    else
+	ln -sf $(LIBDIR)/$(LIBPAMNAME) $(FAKEROOT)$(DEVELLIBDIR)/$(LIBPAM)
+    endif
   endif
 endif
 ifdef STATIC_LIBPAM
-	$(INSTALL) -m 644 $(LIBPAMSTATIC) $(FAKEROOT)$(LIBDIR)
+	$(INSTALL) -m 644 $(LIBPAMSTATIC) $(FAKEROOT)$(DEVELLIBDIR)
 endif
 
 remove:
@@ -164,9 +168,10 @@
 	rm -f $(FAKEROOT)$(INCLUDED)/pam_modules.h
 	rm -f $(FAKEROOT)$(INCLUDED)/pam_malloc.h
 	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBPAM).*
+	rm -f $(FAKEROOT)$(DEVELLIBDIR)/$(LIBPAM).*
 	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBPAM)
 	$(LDCONFIG)
-	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBPAMSTATIC)
+	rm -f $(FAKEROOT)$(DEVELLIBDIR)/$(LIBPAMSTATIC)
 
 clean:
 	rm -f a.out core *~ static/*.o dynamic/*.o
diff -ruN Linux-PAM-0.65.orig/libpam_misc/Makefile Linux-PAM-0.65/libpam_misc/Makefile
--- Linux-PAM-0.65.orig/libpam_misc/Makefile	Sat Jan 31 09:42:54 1998
+++ Linux-PAM-0.65/libpam_misc/Makefile	Thu Apr 16 16:56:24 1998
@@ -61,9 +61,9 @@
 $(LIBDYNAMIC): $(LIBOBJ)
 ifdef MAKE_DYNAMIC
     ifeq ($(USESONAME),yes)
-	$(LD_L) $(SOSWITCH) $(LIBDYNMAJ) -o $@ $(LIBOBJ)
+	$(LD_L) $(SOSWITCH) $(LIBDYNMAJ) -o $@ $(LIBOBJ) $(LD_SH_POSTFIX)
     else
-	$(LD_L) -o $@ $(LIBOBJ)
+	$(LD_L) -o $@ $(LIBOBJ) $(LD_SH_POSTFIX)
     endif
     ifeq ($(NEEDSONAME),yes)
 	rm -f $(LIBDYNMIN)
@@ -84,10 +84,14 @@
 	$(INSTALL) -m $(SHLIBMODE) $(LIBDYNAMIC) $(FAKEROOT)$(LIBDIR)/$(LIBDYNMIN)
 	$(LDCONFIG)
   ifneq ($(DYNTYPE),"sl")
-	( cd $(FAKEROOT)$(LIBDIR) ; ln -sf $(LIBDYNMAJ) $(LIBDYNAMIC) )
+    ifeq ($(LIBDIR),$(DEVELLIBDIR))
+	ln -sf $(LIBDYNMAJ) $(FAKEROOT)$(DEVELLIBDIR)/$(LIBDYNAMIC)
+    else
+	ln -sf $(LIBDIR)/$(LIBDYNMAJ) $(FAKEROOT)$(DEVELLIBDIR)/$(LIBDYNAMIC)
+    endif
   endif
 endif
-	$(INSTALL) -m 644 $(LIBSTATIC) $(FAKEROOT)$(LIBDIR)
+	$(INSTALL) -m 644 $(LIBSTATIC) $(FAKEROOT)$(DEVELLIBDIR)
 
 clean:
 	rm -f *.so *.a core a.out *~
@@ -95,9 +99,10 @@
 remove:
 	rm -f $(FAKEROOT)$(INCLUDED)/pam_misc.h
 	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBDYNAMIC).*
+	rm -f $(FAKEROOT)$(DEVELLIBDIR)/$(LIBDYNAMIC).*
 	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBDYNAMIC)
 	$(LDCONFIG)
-	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBSTATIC)
+	rm -f $(FAKEROOT)$(DEVELLIBDIR)/$(LIBSTATIC)
 	rm -f $(FAKEROOT)$(INCLUDED)/chk_malloc.h
 
 .c.o:
diff -ruN Linux-PAM-0.65.orig/modules/pam_access/Makefile Linux-PAM-0.65/modules/pam_access/Makefile
--- Linux-PAM-0.65.orig/modules/pam_access/Makefile	Mon Oct 27 03:04:17 1997
+++ Linux-PAM-0.65/modules/pam_access/Makefile	Thu Apr 16 16:56:24 1998
@@ -78,7 +78,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_cracklib/Makefile Linux-PAM-0.65/modules/pam_cracklib/Makefile
--- Linux-PAM-0.65.orig/modules/pam_cracklib/Makefile	Mon Oct 27 03:04:44 1997
+++ Linux-PAM-0.65/modules/pam_cracklib/Makefile	Thu Apr 16 16:56:24 1998
@@ -75,7 +75,7 @@
 $(LIBOBJD): $(LIBSRC) Makefile
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) $(CRACKLIB)
+	$(LD_D) -o $@ $(LIBOBJD) $(CRACKLIB) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_deny/Makefile Linux-PAM-0.65/modules/pam_deny/Makefile
--- Linux-PAM-0.65.orig/modules/pam_deny/Makefile	Mon Oct 27 03:05:05 1997
+++ Linux-PAM-0.65/modules/pam_deny/Makefile	Thu Apr 16 16:56:24 1998
@@ -95,7 +95,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_env/Makefile Linux-PAM-0.65/modules/pam_env/Makefile
--- Linux-PAM-0.65.orig/modules/pam_env/Makefile	Fri Feb 20 08:31:09 1998
+++ Linux-PAM-0.65/modules/pam_env/Makefile	Thu Apr 16 16:56:24 1998
@@ -75,7 +75,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) $(EXTRALIB)
+	$(LD_D) -o $@ $(LIBOBJD) $(EXTRALIB) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_filter/Makefile Linux-PAM-0.65/modules/pam_filter/Makefile
--- Linux-PAM-0.65.orig/modules/pam_filter/Makefile	Mon Oct 27 03:06:19 1997
+++ Linux-PAM-0.65/modules/pam_filter/Makefile	Thu Apr 16 16:56:29 1998
@@ -92,7 +92,7 @@
 
 ifdef DYNAMIC
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_ftp/Makefile Linux-PAM-0.65/modules/pam_ftp/Makefile
--- Linux-PAM-0.65.orig/modules/pam_ftp/Makefile	Mon Oct 27 03:14:54 1997
+++ Linux-PAM-0.65/modules/pam_ftp/Makefile	Thu Apr 16 16:56:29 1998
@@ -66,7 +66,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_group/Makefile Linux-PAM-0.65/modules/pam_group/Makefile
--- Linux-PAM-0.65.orig/modules/pam_group/Makefile	Fri Feb 20 08:32:10 1998
+++ Linux-PAM-0.65/modules/pam_group/Makefile	Thu Apr 16 16:56:29 1998
@@ -80,7 +80,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD) $(ELIBS)
+		$(LD_D) -o $@ $(LIBOBJD) $(ELIBS) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_lastlog/Makefile Linux-PAM-0.65/modules/pam_lastlog/Makefile
--- Linux-PAM-0.65.orig/modules/pam_lastlog/Makefile	Mon Oct 27 03:16:14 1997
+++ Linux-PAM-0.65/modules/pam_lastlog/Makefile	Thu Apr 16 16:56:30 1998
@@ -76,7 +76,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_limits/Makefile Linux-PAM-0.65/modules/pam_limits/Makefile
--- Linux-PAM-0.65.orig/modules/pam_limits/Makefile	Fri Feb 20 08:37:18 1998
+++ Linux-PAM-0.65/modules/pam_limits/Makefile	Thu Apr 16 16:56:30 1998
@@ -64,7 +64,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) -lpwdb
+	$(LD_D) -o $@ $(LIBOBJD) -lpwdb $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_listfile/Makefile Linux-PAM-0.65/modules/pam_listfile/Makefile
--- Linux-PAM-0.65.orig/modules/pam_listfile/Makefile	Mon Oct 27 03:19:26 1997
+++ Linux-PAM-0.65/modules/pam_listfile/Makefile	Thu Apr 16 16:56:32 1998
@@ -54,7 +54,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_mail/Makefile Linux-PAM-0.65/modules/pam_mail/Makefile
--- Linux-PAM-0.65.orig/modules/pam_mail/Makefile	Fri Feb 20 08:39:08 1998
+++ Linux-PAM-0.65/modules/pam_mail/Makefile	Thu Apr 16 16:56:32 1998
@@ -77,7 +77,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) $(EXTRALIB)
+	$(LD_D) -o $@ $(LIBOBJD) $(EXTRALIB) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_nologin/Makefile Linux-PAM-0.65/modules/pam_nologin/Makefile
--- Linux-PAM-0.65.orig/modules/pam_nologin/Makefile	Thu Jan 15 00:59:47 1998
+++ Linux-PAM-0.65/modules/pam_nologin/Makefile	Thu Apr 16 16:56:32 1998
@@ -56,7 +56,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_permit/Makefile Linux-PAM-0.65/modules/pam_permit/Makefile
--- Linux-PAM-0.65.orig/modules/pam_permit/Makefile	Mon Oct 27 03:21:01 1997
+++ Linux-PAM-0.65/modules/pam_permit/Makefile	Thu Apr 16 16:56:32 1998
@@ -94,7 +94,7 @@
 
 ifdef DYNAMIC
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_pwdb/Makefile Linux-PAM-0.65/modules/pam_pwdb/Makefile
--- Linux-PAM-0.65.orig/modules/pam_pwdb/Makefile	Fri Feb 20 08:40:58 1998
+++ Linux-PAM-0.65/modules/pam_pwdb/Makefile	Thu Apr 16 16:56:33 1998
@@ -95,7 +95,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) $(PLUS) $(EXTRALS)
+	$(LD_D) -o $@ $(LIBOBJD) $(PLUS) $(EXTRALS) $(LD_SH_POSTFIX)
 endif
 
 #ifdef STATIC
@@ -111,7 +111,7 @@
 	$(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
 endif
 	$(MKDIR) $(FAKEROOT)$(SUPLEMENTED)
-	$(INSTALL) -m 4555 -o root -g root $(CHKPWD) $(FAKEROOT)$(SUPLEMENTED)
+	$(INSTALL) $(SUID_INSTALL_OPT) $(CHKPWD) $(FAKEROOT)$(SUPLEMENTED)
 
 remove:
 	rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
diff -ruN Linux-PAM-0.65.orig/modules/pam_radius/Makefile Linux-PAM-0.65/modules/pam_radius/Makefile
--- Linux-PAM-0.65.orig/modules/pam_radius/Makefile	Fri Feb 20 08:42:20 1998
+++ Linux-PAM-0.65/modules/pam_radius/Makefile	Thu Apr 16 16:56:33 1998
@@ -65,7 +65,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) -lpwdb
+	$(LD_D) -o $@ $(LIBOBJD) -lpwdb $(LD_SH_POSTFIX)
 endif
 
 #ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_rhosts/Makefile Linux-PAM-0.65/modules/pam_rhosts/Makefile
--- Linux-PAM-0.65.orig/modules/pam_rhosts/Makefile	Mon Oct 27 03:22:12 1997
+++ Linux-PAM-0.65/modules/pam_rhosts/Makefile	Thu Apr 16 16:56:33 1998
@@ -53,7 +53,7 @@
 
 ifdef DYNAMIC
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_rootok/Makefile Linux-PAM-0.65/modules/pam_rootok/Makefile
--- Linux-PAM-0.65.orig/modules/pam_rootok/Makefile	Mon Oct 27 03:24:52 1997
+++ Linux-PAM-0.65/modules/pam_rootok/Makefile	Thu Apr 16 16:56:33 1998
@@ -81,7 +81,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_securetty/Makefile Linux-PAM-0.65/modules/pam_securetty/Makefile
--- Linux-PAM-0.65.orig/modules/pam_securetty/Makefile	Mon Oct 27 03:25:06 1997
+++ Linux-PAM-0.65/modules/pam_securetty/Makefile	Thu Apr 16 16:56:33 1998
@@ -54,7 +54,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_shells/Makefile Linux-PAM-0.65/modules/pam_shells/Makefile
--- Linux-PAM-0.65.orig/modules/pam_shells/Makefile	Mon Oct 27 03:25:24 1997
+++ Linux-PAM-0.65/modules/pam_shells/Makefile	Thu Apr 16 16:56:33 1998
@@ -54,7 +54,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_stress/Makefile Linux-PAM-0.65/modules/pam_stress/Makefile
--- Linux-PAM-0.65.orig/modules/pam_stress/Makefile	Mon Oct 27 03:26:00 1997
+++ Linux-PAM-0.65/modules/pam_stress/Makefile	Thu Apr 16 16:56:33 1998
@@ -79,7 +79,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_tally/Makefile Linux-PAM-0.65/modules/pam_tally/Makefile
--- Linux-PAM-0.65.orig/modules/pam_tally/Makefile	Mon Oct 27 03:26:17 1997
+++ Linux-PAM-0.65/modules/pam_tally/Makefile	Thu Apr 16 16:56:33 1998
@@ -63,7 +63,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_time/Makefile Linux-PAM-0.65/modules/pam_time/Makefile
--- Linux-PAM-0.65.orig/modules/pam_time/Makefile	Mon Oct 27 03:27:10 1997
+++ Linux-PAM-0.65/modules/pam_time/Makefile	Thu Apr 16 16:56:33 1998
@@ -87,7 +87,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-		$(LD_D) -o $@ $(LIBOBJD)
+		$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_unix/Makefile Linux-PAM-0.65/modules/pam_unix/Makefile
--- Linux-PAM-0.65.orig/modules/pam_unix/Makefile	Mon Apr  6 09:12:32 1998
+++ Linux-PAM-0.65/modules/pam_unix/Makefile	Thu Apr 16 16:56:34 1998
@@ -109,16 +109,16 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBAUTHSH):	$(LIBAUTHSRC) $(LIBOBJD)
-		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBAUTHOBJ))
+		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBAUTHOBJ)) $(LD_SH_POSTFIX)
 
 $(LIBSESSSH):	$(LIBSESSSRC) $(LIBOBJD)
-		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBSESSOBJ))
+		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBSESSOBJ)) $(LD_SH_POSTFIX)
 
 $(LIBPASSWDSH):	$(LIBPASSWDSRC) $(LIBOBJD)
-		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBPASSWDOBJ)) $(CRACKLIB)
+		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBPASSWDOBJ)) $(CRACKLIB) $(LD_SH_POSTFIX)
 
 $(LIBACCOUNT):	$(LIBACCOUNTSRC) $(LIBOBJD)
-		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBACCOUNTOBJ))
+		$(LD_D) -o $@ $(addprefix dynamic/,$(LIBACCOUNTOBJ)) $(LD_SH_POSTFIX)
 endif
 
 
diff -ruN Linux-PAM-0.65.orig/modules/pam_warn/Makefile Linux-PAM-0.65/modules/pam_warn/Makefile
--- Linux-PAM-0.65.orig/modules/pam_warn/Makefile	Mon Oct 27 03:29:49 1997
+++ Linux-PAM-0.65/modules/pam_warn/Makefile	Thu Apr 16 16:56:34 1998
@@ -66,7 +66,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD)
+	$(LD_D) -o $@ $(LIBOBJD) $(LD_SH_POSTFIX)
 endif
 
 ifdef STATIC
diff -ruN Linux-PAM-0.65.orig/modules/pam_wheel/Makefile Linux-PAM-0.65/modules/pam_wheel/Makefile
--- Linux-PAM-0.65.orig/modules/pam_wheel/Makefile	Fri Feb 20 08:43:51 1998
+++ Linux-PAM-0.65/modules/pam_wheel/Makefile	Thu Apr 16 16:56:34 1998
@@ -61,7 +61,7 @@
 $(LIBOBJD): $(LIBSRC)
 
 $(LIBSHARED):	$(LIBOBJD)
-	$(LD_D) -o $@ $(LIBOBJD) $(EXTRALS)
+	$(LD_D) -o $@ $(LIBOBJD) $(EXTRALS) $(LD_SH_POSTFIX)
 endif
 
 #ifdef STATIC

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []