]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorThorsten Kukuk <kukuk@thkukuk.de>
Wed, 14 Jun 2006 15:28:43 +0000 (15:28 +0000)
committerThorsten Kukuk <kukuk@thkukuk.de>
Wed, 14 Jun 2006 15:28:43 +0000 (15:28 +0000)
Purpose of commit: cleanup

Commit summary:
---------------

2006-06-14  Thorsten Kukuk  <kukuk@thkukuk.de>

        * configure.in: Remove --enable-memory-debug, add option
        to disable prelude if installed.

        * modules/pam_tally/pam_tally.c: Remove MEMORY_DEBUG
        * modules/pam_filter/upperLOWER/upperLOWER.c: Likewise.
        * modules/pam_unix/unix_chkpwd.c: Likewise.
        * libpam/include/security/_pam_types.h: Likewise.
        * libpam/libpam.map: Remove LIBPAM_MALLOC_DEBUG export.
        * libpam/pam_malloc.c: Remove file.
        * libpam/Makefile.am: Remove pam_malloc.c and pam_malloc.h.

ChangeLog
NEWS
configure.in
libpam/Makefile.am
libpam/include/security/_pam_types.h
libpam/libpam.map
modules/pam_filter/upperLOWER/upperLOWER.c
modules/pam_tally/pam_tally.c
modules/pam_unix/unix_chkpwd.c
po/POTFILES.in

index 027fc0d21de26db0e6a654ad1c22669d79d642d1..2554bf428d3edd7826febf620a36ff1f746770d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2006-06-14  Thorsten Kukuk  <kukuk@thkukuk.de>
 
+       * configure.in: Remove --enable-memory-debug, add option
+       to disable prelude if installed.
+
+       * modules/pam_tally/pam_tally.c: Remove MEMORY_DEBUG
+       * modules/pam_filter/upperLOWER/upperLOWER.c: Likewise.
+       * modules/pam_unix/unix_chkpwd.c: Likewise.
+       * libpam/include/security/_pam_types.h: Likewise.
+       * libpam/libpam.map: Remove LIBPAM_MALLOC_DEBUG export.
+       * libpam/pam_malloc.c: Remove file.
+       * libpam/Makefile.am: Remove pam_malloc.c and pam_malloc.h.
+
        * libpam/pam_handlers.c (extract_modulename): Use _pam_strdup
        instead of strdup.
 
diff --git a/NEWS b/NEWS
index 5cccd1628e5512254445b7abd93823f44a4ab97c..9bb648cb04b7c768a5c1200b7b3c0a218c1b38be 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Linux-PAM NEWS -- history of user-visible changes.
   pam_localuser, pam_mail, pam_motd, pam_nologin, pam_permit,
   pam_rootok, pam_securetty, pam_shells, pam_userdb, pam_warn,
   pam_time
+* The libpam memory debug code was removed
 
 Release 0.99.4.0
 
index 2478d41a2eb4cc71ceb2476a0ea2a85ec82f4c11..23faeab631a997dfb2f44db8448e22fc3b8551a7 100644 (file)
@@ -180,9 +180,14 @@ dnl
 dnl options and defaults
 dnl
 
-AM_PATH_LIBPRELUDE([0.9.0])
-if test "$LIBPRELUDE_CONFIG" != "no" ; then
-  LIBPRELUDE_CFLAGS="$LIBPRELUDE_CFLAGS -DPRELUDE=1"
+AC_ARG_ENABLE([prelude],
+       AC_HELP_STRING([--disable-prelude],[do not use prelude]),
+       WITH_PRELUDE=$enableval, WITH_PRELUDE=yes)
+if test "$WITH_PRELUDE" == "yes" ; then
+  AM_PATH_LIBPRELUDE([0.9.0])
+  if test "$LIBPRELUDE_CONFIG" != "no" ; then
+    LIBPRELUDE_CFLAGS="$LIBPRELUDE_CFLAGS -DPRELUDE=1"
+  fi
 fi
 
 dnl lots of debugging information goes to /var/run/pam-debug.log
@@ -194,23 +199,6 @@ AC_ARG_ENABLE([debug],
                WITH_DEBUG=no)
 AC_SUBST(WITH_DEBUG)
 
-AC_ARG_ENABLE([memory-debug],
-    AC_HELP_STRING([--enable-memory-debug],[specify you want every malloc etc. call tracked]),
-    WITH_MEMORY_DEBUG=$enableval, WITH_MEMORY_DEBUG=no)
-if test "$WITH_MEMORY_DEBUG" != "no" ; then
-    AC_DEFINE([MEMORY_DEBUG], 1, [Every malloc etc. call will be tracked])
-fi
-AH_VERBATIM([_MEMORY_DEBUG],
-[#ifdef MEMORY_DEBUG
-/*
- * this is basically a hack - we need to include a semiarbitrary
- * number of headers to ensure that we don't get silly prototype/macro
- */
-# include <string.h>
-# include <stdlib.h>
-# include <security/pam_malloc.h>
-#endif /* MEMORY_DEBUG */])
-
 AC_ARG_ENABLE(securedir,
 [  --enable-securedir=<path to location of PAMs> [default \$libdir/security]],
        SECUREDIR=$enableval, SECUREDIR=$libdir/security)
index a137a24224f25af74e771f0bbb04d99b324de353..56d59f887ab7af2899b7769b31d330165c09f7e3 100644 (file)
@@ -15,7 +15,7 @@ CLEANFILES = *~
 EXTRA_DIST = libpam.map
 
 include_HEADERS = $(addprefix include/security/, _pam_compat.h _pam_macros.h _pam_types.h \
-       pam_appl.h pam_malloc.h pam_modules.h pam_ext.h pam_modutil.h)
+       pam_appl.h pam_modules.h pam_ext.h pam_modutil.h)
 
 noinst_HEADERS = pam_prelude.h pam_private.h pam_tokens.h \
                pam_modutil_private.h pam_static_modules.h
@@ -33,7 +33,7 @@ lib_LTLIBRARIES = libpam.la
 
 libpam_la_SOURCES = pam_account.c pam_auth.c pam_data.c pam_delay.c \
        pam_dispatch.c pam_end.c pam_env.c pam_handlers.c pam_item.c \
-       pam_malloc.c pam_misc.c pam_password.c pam_prelude.c \
+       pam_misc.c pam_password.c pam_prelude.c \
        pam_session.c pam_start.c pam_static.c pam_strerror.c \
        pam_vprompt.c pam_syslog.c pam_dynamic.c pam_audit.c \
        pam_modutil_cleanup.c pam_modutil_getpwnam.c pam_modutil_ioloop.c \
index 85658f3b6bd90671c8eace0241c78667f2e72d6c..45bae97b235905599fdfb60806f5c0d8607ccc6d 100644 (file)
@@ -212,15 +212,6 @@ pam_getenvlist(pam_handle_t *pamh);
 #define HAVE_PAM_FAIL_DELAY
 extern int pam_fail_delay(pam_handle_t *pamh, unsigned int musec_delay);
 
-#ifdef MEMORY_DEBUG
-/*
- * this defines some macros that keep track of what memory has been
- * allocated and indicates leakage etc... It should not be included in
- * production application/modules.
- */
-#include <security/pam_malloc.h>
-#endif
-
 /* ------------ The Linux-PAM conversation structures ------------ */
 
 /* Message styles */
index 596754a83c10a2d61fc123a64ed5d9f329c324ae..1c2c448012dd087f8344ca1ece958b6900c4d2a5 100644 (file)
@@ -22,15 +22,6 @@ LIBPAM_1.0 {
   local:
     *;
 };
-LIBPAM_MALLOC_DEBUG_1.0 {
-  global:
-    pam_malloc;
-    pam_calloc;
-    pam_free;
-    pam_realloc;
-    pam_exit;
-    pam_strdup;
-};
 LIBPAM_EXTENSION_1.0 {
   global:
     pam_prompt;
index 314d2fed563a8d91592fce588c3b62dd7265b951..c0fc5b17182aaef83a2e366ef0e7a74d2b2107da 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * This is a sample filter program, for use with pam_filter (a module
  * provided with Linux-PAM). This filter simply transposes upper and
  * lower case letters, it is intended for demonstration purposes and
@@ -9,10 +7,6 @@
 
 #include "config.h"
 
-#ifdef MEMORY_DEBUG
-# undef exit
-#endif /* MEMORY_DEBUG */
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <syslog.h>
index 12cb5bfa6e07ae95c1eea4776378328cb7834f07..66fc5f3521bf5c8ccca38a40714667b1bd2ee87c 100644 (file)
  * Stuff stolen from pam_rootok and pam_listfile
  *
  * Changes by Tomas Mraz <tmraz@redhat.com> 5 January 2005
- * Audit option added for Tomas patch by Sebastien Tricaud <toady@gscore.org> 13 January 2005
+ * Audit option added for Tomas patch by
+ * Sebastien Tricaud <toady@gscore.org> 13 January 2005
  */
 
 #include "config.h"
 
-#if defined(MAIN) && defined(MEMORY_DEBUG)
-# undef exit
-#endif /* defined(MAIN) && defined(MEMORY_DEBUG) */
-
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
index d63387b631de33b22cb3f03e1e40b5f677279a02..407909a442cf612633bfc30029fdd6e4cda14f9d 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * This program is designed to run setuid(root) or with sufficient
  * privilege to read all of the unix password databases. It is designed
  * to provide a mechanism for the current user (defined by this
 
 #include "config.h"
 
-#ifdef MEMORY_DEBUG
-# undef exit
-# undef strdup
-# undef free
-#endif /* MEMORY_DEBUG */
-
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
index d5f9890fdc8e2e7891a00a0447c731ad66126837..f6c996a31df9194ebf81d1fc386ffcdbad3a46f5 100644 (file)
@@ -68,7 +68,6 @@
 ./libpam/pam_session.c
 ./libpam/pam_prelude.c
 ./libpam/pam_account.c
-./libpam/pam_malloc.c
 ./libpam/pam_syslog.c
 ./libpam/pam_vprompt.c
 ./libpam/pam_modutil_getlogin.c