summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* Enable format compiler warningsChristian Göttsche2023-01-301-0/+1
| | | | | | | | * libpam/include/pam_cc_compat.h (DIAG_PUSH_IGNORE_FORMAT_NONLITERAL, DIAG_POP_IGNORE_FORMAT_NONLITERAL): New macros. * libpam/pam_handlers.c (_pam_open_config_file): Use them to exempt usage of format string literals from a constant array. * m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Wformat=2.
* Enable undef warningChristian Göttsche2023-01-301-0/+1
| | | | | | * modules/pam_unix/pam_unix_passwd.c: Wrap checks for configure macros into defined() operator. * m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Wundef.
* Enable additional compiler warningsChristian Göttsche2023-01-301-0/+3
| | | | | | | The current codebase should comply with those. * m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Winit-self, -Wnull-dereference, and -Wunused.
* Add missing format function attributes and enable -Wmissing-format-attributeChristian Göttsche2020-10-251-0/+1
| | | | | | | | | | | | | | | | | Exported functions already have these attributes, add them to other functions. This enables compilers to find format specifier mismatches, like: foo_print("Hello %d", "world") * m4/warn_lang_flags.m4 (gl_WARN_ADD): Add -Wmissing-format-attribute. * conf/pam_conv1/Makefile.am (AM_CFLAGS): Add -I$(top_srcdir)/libpam/include. * conf/pam_conv1/pam_conv_y.y: Include <security/_pam_types.h>. (yyerror): Add printf format attribute. * modules/pam_pwhistory/opasswd.c (helper_log_err): Likewise. * modules/pam_rootok/pam_rootok.c (log_callback): Likewise. * modules/pam_tally/pam_tally.c (tally_log): Likewise. * modules/pam_tally2/pam_tally2.c (tally_log): Likewise. * modules/pam_unix/passverify.c (helper_log_err): Likewise.
* Build all installed executables with -Wl,-z,now if availableDmitry V. Levin2020-08-072-0/+17
| | | | | | | | | This makes them built with full RELRO if -Wl,-z,relro is specified. * m4/ld-z-now.m4: New file. * m4/.gitignore: Add it to exclude list. * configure.ac: Call PAM_LD_Z_NOW. (EXE_LDFLAGS): Append $ZNOW_LDFLAGS.
* m4: make libprelude-config diagnostics less noisyDmitry V. Levin2020-08-071-4/+6
| | | | | | | | | | | | | | | | | | | Before this change, every normal build of Linux-PAM used to contain the following diagnostics: checking for libprelude-config... no checking for libprelude - version >= 0.9.0... no *** The libprelude-config script installed by LIBPRELUDE could not be found *** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the LIBPRELUDE_CONFIG environment variable to the *** full path to libprelude-config. Given that libprelude-config is rarely used nowadays, the first two lines of diagnostics should be enough. * m4/libprelude.m4 (AM_PATH_LIBPRELUDE): When libprelude-config is not found, do not print the lengthy diagnostics unless --with-libprelude-prefix was specified.
* m4: rewrite ld --no-undefined checkDmitry V. Levin2020-08-071-23/+14
| | | | | * m4/ld-no-undefined.m4: Rewrite using AC_LINK_IFELSE to create a more readable autoconf macro.
* m4: rewrite ld --as-needed checkDmitry V. Levin2020-08-071-23/+14
| | | | | * m4/ld-as-needed.m4: Rewrite using AC_LINK_IFELSE to create a more readable autoconf macro.
* m4: rewrite ld -O1 checkDmitry V. Levin2020-08-071-23/+14
| | | | | * m4/ld-O1.m4: Rewrite using AC_LINK_IFELSE to create a more readable autoconf macro.
* m4: rewrite __attribute__((unused)) checkDmitry V. Levin2020-08-073-33/+17
| | | | | | | | | Rewrite using AC_CACHE_CHECK to create a more readable autoconf macro. * m4/attribute.m4: New file. * m4/japhar_grep_cflags.m4: Remove. * m4/.gitignore: Replace japhar_grep_cflags.m4 with attribute.m4. * configure.ac: Replace AC_C___ATTRIBUTE__ with PAM_ATTRIBUTE_UNUSED.
* build: add -Wcast-align=strict to WARN_CFLAGSDmitry V. Levin2020-08-061-0/+1
| | | | | | This way -Wcast-align will be tested regardless of the target machine. * m4/warn_lang_flags.m4: Add gl_WARN_ADD([-Wcast-align=strict]).
* configure.ac: rewrite WARN_CFLAGS initializationDmitry V. Levin2020-08-064-16/+118
| | | | | | | | | | | | | As the old machinery was not prepared for adding compiler options conditionally when the compiler supports them, replace it with a new machinery that implements this. * m4/warnings.m4: New file. * m4/warn_lang_flags.m4: Likewise. * m4/.gitignore: Add exclusions for them. * m4/japhar_grep_cflags.m4 (JAPHAR_GREP_CFLAGS): Remove. * configure.ac: Call pam_WARN_LANG_FLAGS. Remove all uses of JAPHAR_GREP_CFLAGS.
* autotools: update deprecated macrosChristian Göttsche2020-08-033-16/+20
| | | | | | | | | see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html - update AC_HELP_STRING to AS_HELP_STRING - update AC_TRY_COMPILE to AC_COMPILE_IFELSE - update AC_TRY_RUN to AC_RUN_IFELSE - update AC_TRY_LINK to AC_LINK_IFELSE
* Fix various typos found using codespell toolDmitry V. Levin2020-03-281-3/+3
|
* Update .gitignore filesDmitry V. Levin2011-10-271-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .gitignore: Add common ignore patterns. * m4/.gitignore: Unignore local m4 files. * dynamic/.gitignore: Unignore Makefile. * libpamc/test/modules/.gitignore: Likewise. * libpamc/test/regress/.gitignore: Likewise. * po/.gitignore: Add Makevars.template. * conf/.gitignore: Remove common ignore patterns. * conf/pam_conv1/.gitignore: Likewise. * doc/.gitignore: Likewise. * doc/specs/.gitignore: Likewise. * doc/specs/formatter/.gitignore: Likewise. * examples/.gitignore: Likewise. * modules/pam_filter/upperLOWER/.gitignore: Likewise. * modules/pam_mkhomedir/.gitignore: Likewise. * modules/pam_selinux/.gitignore: Likewise. * modules/pam_stress/.gitignore: Likewise. * modules/pam_tally/.gitignore: Likewise. * modules/pam_tally2/.gitignore: Likewise. * modules/pam_timestamp/.gitignore: Likewise. * modules/pam_unix/.gitignore: Likewise. * tests/.gitignore: Likewise. * xtests/.gitignore: Likewise. * doc/adg/.gitignore: Remove. * doc/man/.gitignore: Remove. * doc/mwg/.gitignore: Remove. * doc/sag/.gitignore: Remove. * libpamc/.gitignore: Remove. * libpamc/test/.gitignore: Remove. * libpam/.gitignore: Remove. * libpam_misc/.gitignore: Remove. * modules/.gitignore: Remove. * modules/pam_access/.gitignore: Remove. * modules/pam_cracklib/.gitignore: Remove. * modules/pam_debug/.gitignore: Remove. * modules/pam_deny/.gitignore: Remove. * modules/pam_echo/.gitignore: Remove. * modules/pam_env/.gitignore: Remove. * modules/pam_exec/.gitignore: Remove. * modules/pam_faildelay/.gitignore: Remove. * modules/pam_filter/.gitignore: Remove. * modules/pam_ftp/.gitignore: Remove. * modules/pam_group/.gitignore: Remove. * modules/pam_issue/.gitignore: Remove. * modules/pam_keyinit/.gitignore: Remove. * modules/pam_lastlog/.gitignore: Remove. * modules/pam_limits/.gitignore: Remove. * modules/pam_listfile/.gitignore: Remove. * modules/pam_localuser/.gitignore: Remove. * modules/pam_loginuid/.gitignore: Remove. * modules/pam_mail/.gitignore: Remove. * modules/pam_motd/.gitignore: Remove. * modules/pam_namespace/.gitignore: Remove. * modules/pam_nologin/.gitignore: Remove. * modules/pam_permit/.gitignore: Remove. * modules/pam_pwhistory/.gitignore: Remove. * modules/pam_rhosts/.gitignore: Remove. * modules/pam_rootok/.gitignore: Remove. * modules/pam_securetty/.gitignore: Remove. * modules/pam_sepermit/.gitignore: Remove. * modules/pam_shells/.gitignore: Remove. * modules/pam_succeed_if/.gitignore: Remove. * modules/pam_time/.gitignore: Remove. * modules/pam_tty_audit/.gitignore: Remove. * modules/pam_umask/.gitignore: Remove. * modules/pam_userdb/.gitignore: Remove. * modules/pam_warn/.gitignore: Remove. * modules/pam_wheel/.gitignore: Remove. * modules/pam_xauth/.gitignore: Remove.
* Rename all .cvsignore files to .gitignoreDmitry V. Levin2011-10-271-0/+0
|
* Fix whitespace issuesDmitry V. Levin2011-10-262-2/+1
| | | | | | Cleanup trailing whitespaces, indentation that uses spaces before tabs, and blank lines at EOF. Make the project free of warnings reported by git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD
* Relevant BUGIDs:Dmitry V. Levin2010-10-191-0/+24
| | | | | | | | | | | | Purpose of commit: new feature Commit summary: --------------- 2010-10-19 Dmitry V. Levin <ldv@altlinux.org> * m4/ld-no-undefined.m4: New file. * configure.in: Use PAM_LD_NO_UNDEFINED. * Makefile.am (M4_FILES): Add m4/ld-no-undefined.m4.
* Relevant BUGIDs:Dmitry V. Levin2010-10-191-2/+2
| | | | | | | | | | Purpose of commit: bugfix Commit summary: --------------- 2010-10-19 Dmitry V. Levin <ldv@altlinux.org> * m4/ld-O1.m4 (PAM_LD_O1): Fix typo.
* Relevant BUGIDs:Thorsten Kukuk2008-11-191-1/+4
| | | | | | | | | | | | | | | Purpose of commit: missing part of new feature Commit summary: --------------- 2008-11-19 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_pwhistory/pam_pwhistory.c (pam_sm_chauthtok): Finish implementation of type=STRING option. * modules/pam_pwhistory/pam_pwhistory.8.xml: Document "type=STRING" option.
* Relevant BUGIDs:Thorsten Kukuk2008-08-021-0/+11
| | | | | | | | | | | | | | | Purpose of commit: bugfix Commit summary: --------------- 2008-08-01 Thorsten Kukuk <kukuk@thkukuk.de> * configure.in: Add version for gettext, add search path for m4 directory, fix handling of --disable-* options. Patches from Diego Pettenò <flameeyes@gmail.com>. * configure.in: Run autoupdate on it.
* Relevant BUGIDs:Thorsten Kukuk2008-08-0133-3197/+48
| | | | | | | | | | | | | | | | | Purpose of commit: cleanup Commit summary: --------------- 2008-08-01 Thorsten Kukuk <kukuk@thkukuk.de> * acincludde.m4: Rename to ... * m4/jh_path_xml_catalog.m4: ... this. * m4/*.m4: Remove all autoconf m4 files. Remove old autoconf m4 files from CVS, autogen.sh will now copy current versions from the system. (Avoid having old buggy versions forever).
* Relevant BUGIDs:Thorsten Kukuk2006-08-312-2/+2
| | | | | | | | | | | | | | | | | Purpose of commit: bugfix Commit summary: --------------- Fix some bugs on older distributions 2006-08-31 Thorsten Kukuk <kukuk@thkukuk.de> * modules/pam_namespace/Makefile.am: Don't install manual page if we don't build module. * m4/ld-as-needed.m4: Don't set LDFLAGS if check failed. * m4/ld-O1: Likewise.
* Relevant BUGIDs:Thorsten Kukuk2006-07-2811-165/+705
| | | | | | | | | | | | | | | | | | | | | | | | | | Purpose of commit: bugfix Commit summary: --------------- Update to gettext 0.15 to support new autoconf: 2006-07-28 Thorsten Kukuk <kukuk@thkukuk.de> * ABOUT-NLS: Upgrade to gettext-0.15. * config.rpath: Likewise. * m4/gettext.m4: Upgrade to gettext-0.15. * m4/inttypes-h.m4: New file, from gettext-0.15. * m4/inttypes-pri.m4: Upgrade to gettext-0.15. * m4/lib-link.m4: Upgrade to gettext-0.15. * m4/lib-prefix.m4: Upgrade to gettext-0.15. * m4/lock.m4: New file, from gettext-0.15. * m4/longdouble.m4: Upgrade to gettext-0.15. * m4/nls.m4: Upgrade to gettext-0.15. * m4/po.m4: Upgrade to gettext-0.15. * m4/size_max.m4: Upgrade to gettext-0.15. * m4/visibility.m4: New file, from gettext-0.15. * po/Makefile.in.in: Upgrade to gettext-0.15.
* Relevant BUGIDs:Thorsten Kukuk2006-06-271-3/+3
| | | | | | | | | | | Purpose of commit: cleanup Commit summary: --------------- 2006-06-27 Thorsten Kukuk <kukuk@thkukuk.de> * m4/libprelude.m4: Sync with upstream.
* Relevant BUGIDs:Thorsten Kukuk2006-06-202-0/+48
| | | | | | | | | | | | | | Purpose of commit: new feature Commit summary: --------------- 2006-06-20 Thorsten Kukuk <kukuk@thkukuk.de> * m4/ld-as-needed.m4: New. * m4/ld-O1.m4: New. * configure.in: Call PAM_LD_AS_NEEDED and PAM_LD_O1, require docbook version 4.4.
* Relevant BUGIDs:Thorsten Kukuk2006-01-241-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | Purpose of commit: new feature Commit summary: --------------- Add framework for manpages in xml source Fix --enable-static-modules 2006-01-24 Thorsten Kukuk <kukuk@thkukuk.de> * libpam/pam_static_modules.h: New. * Makefile.am: Reorder subdirectories for static modules. * configure.in: Add --enable-static-modules option. * libpam/Makefile.am: Define WITH_SELINUX and WITH_PWDB if necessary, add pam_static_modules.h, link against all PAM module object files if STATIC_MODULES is defined. * libpam/pam_static.c: Remove old _static_module* includes, include pam_static_modules.h. * configure.in: Add checks for xsltproc, xmllint and docbook xsl stylesheet. * m4/jh_path_xml_catalog.m4: New.
* Relevant BUGIDs: noneThorsten Kukuk2005-09-201-0/+176
| | | | | | | | | | Purpose of commit: clenaup Commit summary: --------------- Move libprelude macros from acinclude.m4 to m4/libprelude.m4 for easier update.
* Relevant BUGIDs: noneThorsten Kukuk2005-08-1829-0/+2657
Purpose of commit: new feature Commit summary: --------------- Add gettext support.