Commit Graph

27 Commits

Author SHA1 Message Date
Dmitry V. Levin
9334a8d3db Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------
2008-02-18  Dmitry V. Levin  <ldv@altlinux.org>

	* xtests/Makefile.am (EXTRA_DIST): Add tst-pam_assemble_line.pamd
	and tst-pam_assemble_line.sh
2008-02-18 15:25:09 +00:00
Dmitry V. Levin
c7daf2606c Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------
2008-02-18  Dmitry V. Levin  <ldv@altlinux.org>

	* libpam/pam_handlers.c (_pam_assemble_line): Fix potential
	buffer overflow.
	* xtests/tst-pam_assemble_line.pamd: New test for
	_pam_assemble_line.
	* xtests/tst-pam_assemble_line.sh: New script for
	tst-pam_assemble_line.
	* xtests/Makefile.am (NOSRCTESTS): Add tst-pam_assemble_line.
2008-02-18 13:37:46 +00:00
Thorsten Kukuk
dee497d659 Relevant BUGIDs: 1822761
Purpose of commit: bugfix

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

2007-11-06  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/tst-pam_group1.c: Include stdlib.h
        * xtests/tst-pam_succeed_if1.c: Likewise.
        * xtests/tst-pam_limits1.c: Likewise.
        * xtests/tst-pam_access1.c: Likewise.
        * xtests/tst-pam_access2.c: Likewise.
        * xtests/tst-pam_access3.c: Likewise.
        * xtests/tst-pam_access4.c: Likewise.
        * xtests/tst-pam_unix1.c: Likewise.
        * xtests/tst-pam_unix2.c: Likewise.
        * xtests/tst-pam_unix3.c: Likewise.
        * xtests/tst-pam_cracklib1.c: Likewise.
        * xtests/tst-pam_cracklib2.c: Likewise.

2007-10-30  Peter Breitenlohner <peb@mppmu.mpg.de>

        * modules/pam_rhosts/pam_rhosts_auth.c (__icheckhost): Correct
        misplaced parenthesis.
        * modules/pam_unix/pam_unix_acct.c (pam_sm_acct_mgmt): Prevent use of
        dngettext() when NLS is disabled.
        * modules/pam_exec/pam_exec.c (call_exec): Avoid gcc warning.
        * doc/specs/parse_y.y (set_label, new_counter): Break trigraphs to
        avoid gcc warning.
        * modules/pam_wheel/pam_wheel.c: Remove excessive initializer
        elements.
2007-11-06 15:24:26 +00:00
Tomas Mraz
695f6e358d Relevant BUGIDs:
Purpose of commit: new feature

Commit summary:
---------------
2007-10-19  Tomas Mraz  <t8m@centrum.cz>

        * xtests/tst-pam_access1.c: Use different name for user and group.
        * xtests/tst-pam_access1.sh: Likewise.
        * xtests/tst-pam_access2.c: Likewise.
        * xtests/tst-pam_access2.sh: Likewise.
        * xtests/tst-pam_access4.c: Likewise.
        * xtests/tst-pam_access4.sh: Likewise.
        * xtests/group.conf: Likewise.
        * xtests/tst-pam_group1.c: Likewise.
        * xtests/tst-pam_group1.sh: Likewise.

        * libpam/pam_dispatch.c (_pam_dispatch_aux): Save states for substacks,
        record substack level, skip over virtual substack modules, implement
        evaluation of done, die, reset and jumps in substacks. Also fixes
        too far jumps in substacks.
        * libpam/pam_end.c (pam_end): Drop substack evaluation states.
        * libpam/pam_handlers.c (_pam_parse_conf_file): Add substack level
        parameter, instead of must_fail use handler_type needed for virtual
        substack modules.
        (_pam_load_conf_file): Add substack level parameter.
        (_pam_init_handlers): Substack level parameter added to
        _pam_parse_conf_file() calls.
        (_pam_load_module): New function.
        (_pam_add_handler): Refactor code into the _pam_load_module(). Add
        support for virtual substack modules.
        * libpam/pam_private.h: Rename must_fail to handler_type, add stack_level
        to struct handler. Define handler type constants. Add struct
        for substack evaluation states. Define constant for maximum
        substack level. Add substack states pointer to former state struct.
        * libpam/pam_start.c (pam_start): Initialize pointer to substack states.
        * doc/man/pam.conf-syntax.xml: Document substack control.
        * xtests/Makefile.am: Add new tests for substack evaluation.
        * xtests/run_xtests.sh: Support multiple .pamd files in a test.
        * xtests/tst-pam_authfail.pamd: New tests for substack evaluation.
        * xtests/tst-pam_authsucceed.pamd: Likewise.
        * xtests/tst-pam_substack1.pamd: Likewise.
        * xtests/tst-pam_substack1a.pamd: Likewise.
        * xtests/tst-pam_substack1.sh: Likewise.
        * xtests/tst-pam_substack2.pamd: Likewise.
        * xtests/tst-pam_substack2a.pamd: Likewise.
        * xtests/tst-pam_substack2.sh: Likewise.
        * xtests/tst-pam_substack3.pamd: Likewise.
        * xtests/tst-pam_substack3a.pamd: Likewise.
        * xtests/tst-pam_substack3.sh: Likewise.
        * xtests/tst-pam_substack4.pamd: Likewise.
        * xtests/tst-pam_substack4a.pamd: Likewise.
        * xtests/tst-pam_substack4.sh: Likewise.
        * xtests/tst-pam_substack5.pamd: Likewise.
        * xtests/tst-pam_substack5a.pamd: Likewise.
        * xtests/tst-pam_substack5.sh: Likewise.
2007-10-19 17:06:29 +00:00
Tomas Mraz
fba28bf563 Relevant BUGIDs:
Purpose of commit: testcase

Commit summary:
---------------
        * xtests/tst-pam_cracklib2.c: Make the testcase more robust.
2007-10-18 12:33:16 +00:00
Tomas Mraz
5aafd4bcca Relevant BUGIDs:
Purpose of commit: testcase

Commit summary:
---------------
2007-10-18  Tomas Mraz  <t8m@centrum.cz>
        * xtests/tst-pam_dispatch4.c: Fix comment about the test.
        * xtests/tst-pam_dispatch4.pamd: Improve the testcase.
2007-10-18 11:02:57 +00:00
Thorsten Kukuk
4507528d83 Relevant BUGIDs:
Purpose of commit: cleanup

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

Add new tests to .cvsignore
2007-10-18 10:02:33 +00:00
Thorsten Kukuk
9109873b94 Relevant BUGIDs:
Purpose of commit: new testcase

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

2007-10-12  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/Makefile.am: Add tst-pam_dispatch5 sources
        * xtests/tst-pam_dispatch5.c: New test for jump too far.
        * xtests/tst-pam_dispatch5.pamd: New test configuration.
2007-10-12 10:46:25 +00:00
Thorsten Kukuk
97eb58eb40 Relevant BUGIDs:
Purpose of commit: bugfix

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

Fix type.
2007-10-01 12:10:11 +00:00
Thorsten Kukuk
e5de22062c Relevant BUGIDs:
Purpose of commit: new testcase

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

Forgot to add.
2007-10-01 09:43:09 +00:00
Thorsten Kukuk
417cb2fbd8 Relevant BUGIDs:
Purpose of commit: bugfix

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

2007-10-01  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/tst-pam_group1.c: New test case for user compare in pam_group.
        * xtests/tst-pam_group1.sh: Script to run test case.
        * xtests/tst-pam_group1.pamd: Config for test case.
        * xtests/Makefile.am: Add tst-pam_group1 test case.
        * xtests/run-xtests.sh: Save/restore group.conf.
        * xtests/group.conf: New.

        * modules/pam_xauth/pam_xauth.c (pam_sm_open_session): Don't
        free arguments used for putenv().

        * doc/man/pam_putenv.3.xml: Document that application has to free
        the memory.
2007-10-01 09:41:32 +00:00
Thorsten Kukuk
1435f0a404 Relevant BUGIDs:
Purpose of commit:

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

Really commit now ...
2007-09-27 14:16:32 +00:00
Thorsten Kukuk
e83bead09f Relevant BUGIDs:
Purpose of commit: bugfix

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

2007-09-27  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/run-xtests.sh: Add support to skip tests.
        * xtests/tst-pam_limits1.c: Skip test if RLIMIT_NICE is not
        defined.
2007-09-27 10:22:06 +00:00
Thorsten Kukuk
4e66efa10e Relevant BUGIDs:
Purpose of commit:  bugfix, release

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

2007-07-06  Thorsten Kukuk  <kukuk@thkukuk.de>

        * release version 0.99.8.0

        * configure.in: Check for audit_log_acct_message instead of
        audit_log_user_message.
        * libpam/pam_audit.c: Use audit_log_acct_message.
        Based on patch from Mark J Cox <mjc@redhat.com>.
        * libpam/Makefile.am: Bump version number of libpam.

        * modules/pam_umask/pam_umask.c (set_umask): mode_t is 32bit,
        not 64bit.

        * xtests/tst-pam_limits1.c: Fix printf arguments.

        * po/*.po: Merge po files with latest code changes.
2007-07-06 08:23:13 +00:00
Thorsten Kukuk
d6b09ee15e Relevant BUGIDs:
Purpose of commit:

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

forgot to commit ...
2007-06-26 10:45:42 +00:00
Thorsten Kukuk
eca9894caa Relevant BUGIDs:
Purpose of commit: bugfix

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

2007-06-26  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_limits/pam_limits.c (process_limit): Check upper and
        lower limit of nice value, fix off-by-one in conversation to rlim_t.
        * xtests/Makefile.am: Add new pam_limits test case.
        * xtests/limits.conf: New, config file for test case.
        * xtests/pam_limits1.c: New, test case for RLIMIT_NICE.
        * xtests/pam_limits1.sh: Likewise.
        * xtests/pam_limits1.pamd: Likewise.
2007-06-26 10:44:28 +00:00
Thorsten Kukuk
dd80f758c4 Relevant BUGIDs:
Purpose of commit: bugfix

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

2007-06-25  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_access/pam_access.c (list_match): Use saveptr of strtok_r
        result for recursive calls.
        * xtests/Makefile.am: Add new pam_access test cases.
        * xtests/pam_access1.c: New test case.
        * xtests/pam_access2.c: Likewise.
        * xtests/pam_access3.c: Likewise.
        * xtests/pam_access4.c: Likewise.
        * xtests/pam_access1.sh: Wrapper to create user accounts.
        * xtests/pam_access2.sh: Likewise.
        * xtests/pam_access3.sh: Likewise.
        * xtests/pam_access4.sh: Likewise.
        * xtests/pam_access1.pamd: PAM config file for pam_access tests.
        * xtests/pam_access2.pamd: Likewise.
        * xtests/pam_access3.pamd: Likewise.
        * xtests/pam_access4.pamd: Likewise.
        * xtests/access.conf: Config file for pam_access tests.
        * xtests/run-tests.sh: Install access.conf into system.
2007-06-25 11:09:32 +00:00
Thorsten Kukuk
2cffe6c172 Relevant BUGIDs: 1688777
Purpose of commit: new features

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

2007-06-20  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_cracklib/pam_cracklib.8.xml: Document new minclass
        option.
        * modules/pam_cracklib/pam_cracklib.c: Add support for minimum
        character classes [#1688777]. Based on patch from Keith Schincke.

        * xtests/tst-pam_cracklib2.c: New, test case for minclass option.
        * xtests/tst-pam_cracklib2.pamd: New, PAM config file for test case.
        * xtests/Makefile.am: Add new testcase.

        * xtests/pam_cracklib.c: Fix comment what this application tests.

        * configure.in: Use /lib64 on x86-64, ppc64, s390x, sparc64
2007-06-20 13:54:08 +00:00
Thorsten Kukuk
7b33ec0504 Relevant BUGIDs:
Purpose of commit: bugfix

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

2007-05-04  Thorsten Kukuk  <kukuk@suse.de>

        * xtests/run-xtests.sh: Use SRCDIR to find PAM config files.
        * xtests/Makefile.am:Call run-xtests.sh with srcdir as first
        argument.
        Based on patch by Bernard Leak <thisisnotapipe@hotmail.com>.
2007-05-04 11:36:08 +00:00
Tomas Mraz
e8f5cd4ad8 Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------
2007-02-01  Tomas Mraz  <t8m@centrum.cz>

        * xtests/tst-pam_unix3.c: Fix typos in comments.

        * modules/pam_unix/support.c (_unix_verify_password): Explicitly
        disallow '!' in the beginning of password hash. Treat only
        13 bytes password hash specifically. (Suggested by Solar Designer.)
        Fix a warning and test for allocation failure.
        * modules/pam_unix/unix_chkpwd.c (_unix_verify_password): Likewise.
2007-02-01 21:54:58 +00:00
Thorsten Kukuk
b12b648d83 Relevant BUGIDs:
Purpose of commit: new feature

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

2007-01-31  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/Makefile.am: Add new pam_unix.so tests
        * xtests/run-xtests.sh: Prefer shell scripts (wrapper)
        over binaries.
        * xtests/tst-pam_cracklib1.c: Fix typo.
        * xtests/tst-pam_unix1.c: New, for sucurity fix.
        * xtests/tst-pam_unix1.pamd: New.
        * xtests/tst-pam_unix1.sh: New.
        * xtests/tst-pam_unix2.c: New, for crypt checks.
        * xtests/tst-pam_unix2.pamd: New.
        * xtests/tst-pam_unix2.sh: New.
        * xtests/tst-pam_unix3.c: New, for bigcrypt checks.
        * xtests/tst-pam_unix3.pamd: New.
        * xtests/tst-pam_unix3.sh: New.
2007-01-31 19:19:44 +00:00
Thorsten Kukuk
424578c5c4 Relevant BUGIDs:
Purpose of commit: cleanup/bugfix

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

2006-08-30  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/Makefile.am: Move shell code to execute tests from here ...
        * xtests/run-xtests.sh: ... to here.
        * xtests/*.c: Include config.h.
        * tests/*.c: Likewise.
2006-08-30 08:45:30 +00:00
Thorsten Kukuk
4f552174b4 Relevant BUGIDs:
Purpose of commit: bugfix

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

2006-08-24  Thorsten Kukuk  <kukuk@thkukuk.de>

        * release version 0.99.6.2

        * modules/pam_lastlog/pam_lastlog.c (last_login_date): Create
        lastlog file if it does not exist.
2006-08-24 18:01:22 +00:00
Thorsten Kukuk
59a0a22580 Relevant BUGIDs:
Purpose of commit: bugfix

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

2006-08-24  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_cracklib/pam_cracklib.c (pam_sm_chauthtok): Check
        for error from getting second token.
        * xtests/Makefile.am: Add tst-pam_cracklib1
        * xtests/tst-pam_cracklib1.c: New, check for pam_cracklib seg.fault.
        * xtests/tst-pam_cracklib1.pamd: New, config for cracklib test.
2006-08-24 11:26:10 +00:00
Thorsten Kukuk
46fa420018 Relevant BUGIDs:
Purpose of commit: new feature

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

Add test for [...] control sequences.

2006-08-24  Thorsten Kukuk  <kukuk@thkukuk.de>

        * xtests/tst-pam_dispatch4.c: New test.
        * xtests/tst-pam_dispatch4.pamd: PAM config for new test.
2006-08-24 08:49:19 +00:00
Thorsten Kukuk
9fe629581b Relevant BUGIDs:
Purpose of commit: bugfix

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

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

        * modules/pam_umask/pam_umask.c (setup_limits_from_gecos):
        Add error handling.
        * modules/pam_umask/pam_umask.8.xml: Document silent option.

        * xtests/Makefile.am: Fix includes for bootstrapping.
        Reported by Greg Schafer <gschafer@zip.com.au>.
2006-08-06 11:38:43 +00:00
Thorsten Kukuk
72bcf614b2 Relevant BUGIDs:
Purpose of commit: new feature

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

Add xtests to allow checks for PAM functions only doable in installed
system.

2006-08-05 Thorsten Kukuk  <kukuk@thkukuk.de>

        * configure.in: Generate xtests/Makefile.
        * Makefile.am (SUBDIRS): Add xtests.
        * README: Document make check and make xtests.
        * xtests/Makefile.am: New.
        * xtests/tst-pam_dispatch1.pamd: New.
        * xtests/tst-pam_dispatch2.pamd: New.
        * xtests/tst-pam_dispatch3.pamd: New.
        * xtests/tst-pam_dispatch1.c: New.
        * xtests/tst-pam_dispatch2.c: New.
        * xtests/tst-pam_dispatch3.c: New.
2006-08-05 08:03:11 +00:00