Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/openpam/dist Import openpam-20120526



details:   https://anonhg.NetBSD.org/src/rev/2c77b050c4d5
branches:  trunk
changeset: 785906:2c77b050c4d5
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 06 01:23:24 2013 +0000

description:
Import openpam-20120526

diffstat:

 external/bsd/openpam/dist/CREDITS                                       |   11 +-
 external/bsd/openpam/dist/HISTORY                                       |   58 +-
 external/bsd/openpam/dist/INSTALL                                       |    2 +-
 external/bsd/openpam/dist/LICENSE                                       |    4 +-
 external/bsd/openpam/dist/Makefile.am                                   |    4 +-
 external/bsd/openpam/dist/Makefile.in                                   |   14 +-
 external/bsd/openpam/dist/README                                        |    2 +-
 external/bsd/openpam/dist/RELNOTES                                      |    9 +-
 external/bsd/openpam/dist/TODO                                          |   13 +
 external/bsd/openpam/dist/aclocal.m4                                    |  272 ++-
 external/bsd/openpam/dist/autogen.sh                                    |    2 +-
 external/bsd/openpam/dist/bin/Makefile.am                               |    4 +-
 external/bsd/openpam/dist/bin/Makefile.in                               |    6 +-
 external/bsd/openpam/dist/bin/openpam_dump_policy/Makefile.am           |    7 +
 external/bsd/openpam/dist/bin/openpam_dump_policy/Makefile.in           |  474 +++++
 external/bsd/openpam/dist/bin/openpam_dump_policy/openpam_dump_policy.c |  204 ++
 external/bsd/openpam/dist/bin/pamtest/Makefile.am                       |    2 +-
 external/bsd/openpam/dist/bin/pamtest/Makefile.in                       |    2 +-
 external/bsd/openpam/dist/bin/su/Makefile.am                            |    2 +-
 external/bsd/openpam/dist/bin/su/Makefile.in                            |    2 +-
 external/bsd/openpam/dist/config.h.in                                   |    6 +
 external/bsd/openpam/dist/configure                                     |  197 +-
 external/bsd/openpam/dist/configure.ac                                  |   19 +-
 external/bsd/openpam/dist/doc/Makefile.am                               |    2 +-
 external/bsd/openpam/dist/doc/Makefile.in                               |    2 +-
 external/bsd/openpam/dist/doc/man/Makefile.am                           |   15 +-
 external/bsd/openpam/dist/doc/man/Makefile.in                           |   15 +-
 external/bsd/openpam/dist/doc/man/openpam.man                           |    2 +-
 external/bsd/openpam/dist/doc/man/openpam_get_feature.3                 |  107 +
 external/bsd/openpam/dist/doc/man/openpam_readlinev.3                   |  161 +
 external/bsd/openpam/dist/doc/man/openpam_readword.3                    |  154 +
 external/bsd/openpam/dist/doc/man/openpam_set_feature.3                 |   89 +
 external/bsd/openpam/dist/doc/man/openpam_straddch.3                    |  124 +
 external/bsd/openpam/dist/doc/man/pam.man                               |    2 +-
 external/bsd/openpam/dist/include/Makefile.am                           |    2 +-
 external/bsd/openpam/dist/include/Makefile.in                           |    2 +-
 external/bsd/openpam/dist/include/security/Makefile.am                  |    2 +-
 external/bsd/openpam/dist/include/security/Makefile.in                  |    2 +-
 external/bsd/openpam/dist/lib/Makefile.am                               |   11 +-
 external/bsd/openpam/dist/lib/Makefile.in                               |   29 +-
 external/bsd/openpam/dist/lib/openpam_ctype.h                           |   70 +
 external/bsd/openpam/dist/lib/openpam_features.c                        |   71 +
 external/bsd/openpam/dist/lib/openpam_features.h                        |   50 +
 external/bsd/openpam/dist/lib/openpam_get_feature.c                     |  101 +
 external/bsd/openpam/dist/lib/openpam_readlinev.c                       |  158 +
 external/bsd/openpam/dist/lib/openpam_readword.c                        |  209 ++
 external/bsd/openpam/dist/lib/openpam_set_feature.c                     |   77 +
 external/bsd/openpam/dist/lib/openpam_straddch.c                        |  113 +
 external/bsd/openpam/dist/lib/openpam_strlcat.h                         |   56 +
 external/bsd/openpam/dist/ltmain.sh                                     |   95 +-
 external/bsd/openpam/dist/modules/Makefile.am                           |    2 +-
 external/bsd/openpam/dist/modules/Makefile.in                           |    2 +-
 external/bsd/openpam/dist/modules/pam_deny/Makefile.am                  |    2 +-
 external/bsd/openpam/dist/modules/pam_deny/Makefile.in                  |    2 +-
 external/bsd/openpam/dist/modules/pam_permit/Makefile.am                |    2 +-
 external/bsd/openpam/dist/modules/pam_permit/Makefile.in                |    2 +-
 external/bsd/openpam/dist/modules/pam_unix/Makefile.am                  |    2 +-
 external/bsd/openpam/dist/modules/pam_unix/Makefile.in                  |    2 +-
 external/bsd/openpam/dist/pamgdb.in                                     |   41 +
 external/bsd/openpam/dist/t/Makefile.am                                 |   16 +
 external/bsd/openpam/dist/t/Makefile.in                                 |  605 +++++++
 external/bsd/openpam/dist/t/t.h                                         |   62 +
 external/bsd/openpam/dist/t/t_main.c                                    |  121 +
 external/bsd/openpam/dist/t/t_openpam_readlinev.c                       |  344 ++++
 external/bsd/openpam/dist/t/t_openpam_readword.c                        |  831 ++++++++++
 65 files changed, 4845 insertions(+), 228 deletions(-)

diffs (truncated from 6772 to 300 lines):

diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/CREDITS
--- a/external/bsd/openpam/dist/CREDITS Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/CREDITS Sat Apr 06 01:23:24 2013 +0000
@@ -16,16 +16,21 @@
        Brian Fundakowski Feldman <green%freebsd.org@localhost>
        Christos Zoulas <christos%netbsd.org@localhost>
        Daniel Richard G. <skunk%iskunk.org@localhost>
-       Darren J. Moffat <Darren.Moffat%sun.com@localhost>
+       Darren J. Moffat <darren.moffat%sun.com@localhost>
        Dmitry V. Levin <ldv%altlinux.org@localhost>
+       Don Lewis <truckman%freebsd.org@localhost>
        Emmanuel Dreyfus <manu%netbsd.org@localhost>
        Eric Melville <eric%freebsd.org@localhost>
-       Gary Winiger <Gary.Winiger%sun.com@localhost>
+       Gary Winiger <gary.winiger%sun.com@localhost>
+       Gleb Smirnoff <glebius%freebsd.org@localhost>
        Hubert Feyrer <hubert%feyrer.de@localhost>
+       Jason Evans <jasone%freebsd.org@localhost>
        Joe Marcus Clarke <marcus%freebsd.org@localhost>
        Juli Mallett <jmallett%freebsd.org@localhost>
        Jörg Sonnenberger <joerg%britannica.bec.de@localhost>
+       Maëlle Lesage <lesage.maelle%gmail.com@localhost>
        Mark Murray <markm%freebsd.org@localhost>
+       Matthias Drochner <drochner%netbsd.org@localhost>
        Mike Petullo <mike%flyn.org@localhost>
        Mikhail Teterin <mi%aldan.algebra.com@localhost>
        Mikko Työläjärvi <mbsd%pacbell.net@localhost>
@@ -38,4 +43,4 @@
        Wojciech A. Koszek <wkoszek%freebsd.org@localhost>
        Yar Tikhiy <yar%freebsd.org@localhost>
 
-Id: CREDITS 498 2011-11-21 16:27:04Z des
+Id: CREDITS 587 2012-04-08 11:12:10Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/HISTORY
--- a/external/bsd/openpam/dist/HISTORY Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/HISTORY Sat Apr 06 01:23:24 2013 +0000
@@ -1,3 +1,51 @@
+OpenPAM Micrampelis                                            2012-05-26
+
+ - FEATURE: Add an openpam_readword(3) function which reads the next
+   word from an input stream, applying shell quoting and escaping
+   rules.  Add numerous unit tests for openpam_readword(3).
+
+ - FEATURE: Add an openpam_readlinev(3) function which uses the
+   openpam_readword(3) function to read words from an input stream one
+   at a time until it reaches an unquoted, unescaped newline, and
+   returns an array of those words.  Add several unit tests for
+   openpam_readlinev(3).
+
+ - FEATURE: Add a PAM_HOST item which pam_start(3) initializes to the
+   machine's hostname.  This was implemented in Lycopsida but
+   inadvertantly left out of the release notes.
+
+ - FEATURE: In pam_get_authtok(3), if neither the application nor the
+   module have specified a prompt and PAM_HOST and PAM_RHOST are both
+   defined but not equal, use a different default prompt that includes
+   PAM_USER and PAM_HOST.
+
+ - ENHANCE: Rewrite the policy parser to used openpam_readlinev(),
+   which greatly simplifies the code.
+
+ - ENHANCE: The previous implementation of the policy parser relied on
+   the openpam_readline(3) function, which (by design) munges
+   whitespace and understands neither quotes nor backslash escapes.
+   As a result of the aforementioned rewrite, whitespace, quotes and
+   backslash escapes in policy files are now handled in a consistent
+   and predictable manner.
+
+ - ENHANCE: On platforms that have it, use fdlopen(3) to load modules.
+   This closes the race between the ownership / permission check and
+   the dlopen(3) call.
+
+ - ENHANCE: Reduce the amount of pointless error messages generated
+   while searching for a module.
+
+ - ENHANCE: Numerous documentation improvements, both in content and
+   formatting.
+
+ - BUGFIX: A patch incorporated in Lycopsida inadvertantly changed
+   OpenPAM's behavior when several policies exist for the same
+   service, from ignoring all but the first to concatenating them all.
+   Revert to the original behavior.
+
+ - BUGFIX: Plug a memory leak in the policy parser.
+============================================================================
 OpenPAM Lycopsida                                              2011-12-18
 
  - ENHANCE: removed static build autodetection, which didn't work
@@ -269,7 +317,7 @@
  - ENHANCE: Add openpam_free_data(), a generic cleanup function for
    pam_set_data() consumers.
 ============================================================================
-OpenPAM        Centaury                                                2002-03-14
+OpenPAM Centaury                                               2002-03-14
 
  - BUGFIX: Add missing #include <string.h> to openpam_log.c.
 
@@ -308,7 +356,7 @@
    module with the same version number as the library itself to one
    with no version number at all.
 ============================================================================
-OpenPAM        Cantaloupe                                              2002-02-22
+OpenPAM Cantaloupe                                             2002-02-22
 
  - BUGFIX: The proper use of PAM_SYMBOL_ERR is to indicate an invalid
    argument to pam_[gs]et_item(3), not to indicate dlsym(3) failures.
@@ -338,7 +386,7 @@
  - ENHANCE: openpam_get_authtok() now respects the echo_pass,
    try_first_pass, and use_first_pass options.
 ============================================================================
-OpenPAM        Caliopsis                                               2002-02-13
+OpenPAM Caliopsis                                              2002-02-13
 
 Fixed a number of bugs in the previous release, including:
   - a number of bugs in and related to pam_[gs]et_item(3)
@@ -349,8 +397,8 @@
   - missing 'continue' in openpam_dispatch.c caused successes to be
     counted as failures
 ============================================================================
-OpenPAM        Calamite                                                2002-02-09
+OpenPAM Calamite                                               2002-02-09
 
 First (beta) release.
 ============================================================================
-Id: HISTORY 504 2011-12-18 14:11:12Z des
+Id: HISTORY 609 2012-05-26 13:57:45Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/INSTALL
--- a/external/bsd/openpam/dist/INSTALL Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/INSTALL Sat Apr 06 01:23:24 2013 +0000
@@ -55,4 +55,4 @@
 
   # make install
 
-Id: INSTALL 388 2006-04-12 10:31:52Z des
+Id: INSTALL 388 2006-04-12 10:31:52Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/LICENSE
--- a/external/bsd/openpam/dist/LICENSE Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/LICENSE Sat Apr 06 01:23:24 2013 +0000
@@ -1,6 +1,6 @@
 
 Copyright (c) 2002-2003 Networks Associates Technology, Inc.
-Copyright (c) 2004-2011 Dag-Erling Smørgrav
+Copyright (c) 2004-2012 Dag-Erling Smørgrav
 All rights reserved.
 
 This software was developed for the FreeBSD Project by ThinkSec AS and
@@ -32,4 +32,4 @@
 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 SUCH DAMAGE.
 
-Id: LICENSE 437 2011-09-13 12:00:13Z des
+Id: LICENSE 546 2012-03-31 23:13:20Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/Makefile.am
--- a/external/bsd/openpam/dist/Makefile.am     Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/Makefile.am     Sat Apr 06 01:23:24 2013 +0000
@@ -1,4 +1,4 @@
-# Id: Makefile.am 428 2010-03-09 17:32:17Z des
+# Id: Makefile.am 549 2012-04-01 20:38:30Z des 
 
 ACLOCAL_AMFLAGS = -I m4
 
@@ -8,6 +8,8 @@
 SUBDIRS += doc
 endif
 
+SUBDIRS += t
+
 EXTRA_DIST = \
        CREDITS \
        HISTORY \
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/Makefile.in
--- a/external/bsd/openpam/dist/Makefile.in     Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/Makefile.in     Sat Apr 06 01:23:24 2013 +0000
@@ -15,7 +15,7 @@
 
 @SET_MAKE@
 
-# Id: Makefile.am 428 2010-03-09 17:32:17Z des
+# Id: Makefile.am 549 2012-04-01 20:38:30Z des 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
@@ -39,8 +39,8 @@
 subdir = .
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
        $(srcdir)/Makefile.in $(srcdir)/config.h.in \
-       $(top_srcdir)/configure INSTALL config.guess config.sub \
-       depcomp install-sh ltmain.sh missing
+       $(srcdir)/pamgdb.in $(top_srcdir)/configure INSTALL TODO \
+       config.guess config.sub depcomp install-sh ltmain.sh missing
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
@@ -49,7 +49,7 @@
  configure.lineno config.status.lineno
 mkinstalldirs = $(install_sh) -d
 CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = pamgdb
 CONFIG_CLEAN_VPATH_FILES =
 SOURCES =
 DIST_SOURCES =
@@ -67,7 +67,7 @@
        distdir dist dist-all distcheck
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = lib bin modules include doc
+DIST_SUBDIRS = lib bin modules include doc t
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
@@ -222,7 +222,7 @@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = lib bin modules include $(am__append_1)
+SUBDIRS = lib bin modules include $(am__append_1) t
 EXTRA_DIST = \
        CREDITS \
        HISTORY \
@@ -288,6 +288,8 @@
 
 distclean-hdr:
        -rm -f config.h stamp-h1
+pamgdb: $(top_builddir)/config.status $(srcdir)/pamgdb.in
+       cd $(top_builddir) && $(SHELL) ./config.status $@
 
 mostlyclean-libtool:
        -rm -f *.lo
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/README
--- a/external/bsd/openpam/dist/README  Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/README  Sat Apr 06 01:23:24 2013 +0000
@@ -24,4 +24,4 @@
 
 Please direct bug reports and inquiries to <des%des.no@localhost>.
 
-Id: README 424 2009-10-29 17:10:22Z des
+Id: README 424 2009-10-29 17:10:22Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/RELNOTES
--- a/external/bsd/openpam/dist/RELNOTES        Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/RELNOTES        Sat Apr 06 01:23:24 2013 +0000
@@ -1,6 +1,6 @@
 
-                Release notes for OpenPAM Lycopsida
-                ===================================
+               Release notes for OpenPAM Micrampelis
+               =====================================
 
 This release corresponds to the code used in FreeBSD HEAD as of the
 release date, and is also expected to work on almost any POSIX-like
@@ -19,6 +19,9 @@
 application developers.  It also includes a command-line application
 (pamtest) which can be used to test policies and modules.
 
+Unit tests for limited portions of the library can be found in the t
+subdirectory.
+
 Please direct bug reports and inquiries to <des%des.no@localhost>.
 
-Id: RELNOTES 506 2011-12-18 14:25:12Z des
+Id: RELNOTES 609 2012-05-26 13:57:45Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/TODO
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/openpam/dist/TODO    Sat Apr 06 01:23:24 2013 +0000
@@ -0,0 +1,13 @@
+Before the next release:
+
+ - Complete the transition from PAM_LOG_DEBUG to PAM_LOG_LIBDEBUG.
+
+Whenever:
+
+ - Implement mechanism to enable / disable optional features.  Use it
+   to disable strict error checking so pamtest and unit tests can do
+   things that we don't allow in production.
+
+ - Rewrite the module-loading code.
+
+Id: TODO 592 2012-04-08 13:19:51Z des 
diff -r 58df4f6774dc -r 2c77b050c4d5 external/bsd/openpam/dist/aclocal.m4
--- a/external/bsd/openpam/dist/aclocal.m4      Fri Apr 05 20:23:13 2013 +0000
+++ b/external/bsd/openpam/dist/aclocal.m4      Sat Apr 06 01:23:24 2013 +0000
@@ -22,8 +22,8 @@
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 #
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
-#                 Inc.
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+#                 Foundation, Inc.
 #   Written by Gordon Matzigkeit, 1996
 #
 # This file is free software; the Free Software Foundation gives
@@ -32,8 +32,8 @@
 
 m4_define([_LT_COPYING], [dnl
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
-#                 Inc.
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+#                 Foundation, Inc.



Home | Main Index | Thread Index | Old Index