Commit Graph

151 Commits

Author SHA1 Message Date
Dmitry V. Levin
613e59dca7 build: drop autotools support
There is no point in supporting two different build systems.
2024-10-23 08:00:00 +00:00
Dmitry V. Levin
7fb6beed01 meson: build Linux-PAM using meson
On my non-representative hardware, the full build using autotools
(./autogen.sh && CFLAGS=-O2 ./configure && make -j`nproc` && make -j`nproc` install)
takes about 45 seconds.

On the same hardware, the full build using meson
(meson setup -Doptimization=2 dir && meson compile -C dir && meson install -C dir)
takes just about 7.5 seconds.
2024-09-10 08:00:00 +00:00
Thorsten Kukuk
f5db2603d2 pam_limits: use systemd-logind instead of utmp (#822)
The utmp database is unreliable for counting logged in users, since
there is no standard which defines who should create an entry at which
time for which reason. And it has a Y2038 problem with glibc/x86-64.
Query systemd-logind for the number of user sessions instead.
2024-09-10 09:32:02 +02:00
Dmitry V. Levin
3f4b8cd77c build: rename VENDOR_SCONFIGDIR config.h macro to VENDOR_SCONFIG_DIR
... for the same reason SCONFIGDIR config.h macro was renamed to
SCONFIG_DIR.
2024-08-26 08:00:00 +00:00
Dmitry V. Levin
aca37d3400 build: rename SCONFIGDIR config.h macro to SCONFIG_DIR
This way it is visibly different from the configure variable SCONFIGDIR,
which is helpful, because their values are slightly different:
the macro is quoted while the configure variable is not quoted,
and this difference may cause problems with other build systems.
2024-08-25 08:00:00 +00:00
Dmitry V. Levin
4d1d4f6995 Include pam_i18n.h where i18n definitions are required
Do not include <libintl.h> and other i18n stuff via config.h which is
included into every compilation unit, include "pam_i18n.h" explicitly
where necessary.

* configure.ac (AH_BOTTOM): Remove.
* libpam/pam_get_authtok.c: Include "pam_i18n.h".
* libpam/pam_item.c: Likewise.
* libpam/pam_strerror.c: Likewise.
* libpam_misc/misc_conv.c: Likewise.
* modules/pam_exec/pam_exec.c: Likewise.
* modules/pam_faillock/main.c: Likewise.
* modules/pam_faillock/pam_faillock.c: Likewise.
* modules/pam_lastlog/pam_lastlog.c: Likewise.
* modules/pam_limits/pam_limits.c: Likewise.
* modules/pam_mail/pam_mail.c: Likewise.
* modules/pam_mkhomedir/pam_mkhomedir.c: Likewise.
* modules/pam_pwhistory/pam_pwhistory.c: Likewise.
* modules/pam_selinux/pam_selinux.c: Likewise.
* modules/pam_selinux/pam_selinux_check.c: Likewise.
* modules/pam_timestamp/pam_timestamp.c: Likewise.
* modules/pam_unix/pam_unix_acct.c: Likewise.
* modules/pam_unix/pam_unix_passwd.c: Likewise.
* modules/pam_userdb/pam_userdb.c: Likewise.
2024-08-21 08:00:00 +00:00
Aura Herrero Ruiz
88eccaedc6 doc: fix uses of non-neutral gender pronouns 2024-04-02 14:00:00 +00:00
Shaleen Bathla
db25d975c8 pam_limits: fix potential use-after-free of pl->conf_file
When limits.d is processed, pl->conf_file consequently points to
elements of filename_list array which are freed later even though
it can still be used in the logging.

Signed-off-by: Shaleen Bathla <shaleen.bathla@oracle.com>
Co-authored-by: Dmitry V. Levin <ldv@strace.io>
Fixes: f6b973b922 ("Add support for limits.d directory to pam_limits")
2024-03-04 09:01:16 +00:00
Christian Göttsche
dc370deab4 conf/modules: constify read-only data arrays 2024-02-22 16:04:15 +00:00
Christian Göttsche
9a48bb9ea3 modules: drop redundant return at end of void functions 2024-02-22 16:04:11 +00:00
Christian Göttsche
f476a55237 modules: enclose macro parameter 2024-02-22 16:04:09 +00:00
Tobias Stoeckmann
1e2c6cecf8 pam_limits: print line number in warning
The line itself is modified while parsing its content. Print the line
number and file name instead so an administrator can investigate it.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-02-07 19:16:03 +01:00
Tobias Stoeckmann
9228077d76 pam_limits: remove whitespaces around value
Trim all whitespaces before and after value.

Resolves: https://github.com/linux-pam/linux-pam/pull/760
Fixes: eec4358a49 ("pam_limits: avoid sscanf in parse_config_file")

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-02-06 18:12:26 +01:00
Tobias Stoeckmann
54a0aee65b libpam_internal: supply debug functionality
Move function bodies from headers into dedicated object files stored in
libpam_internal. This library won't be installed.

Keep the debug function body in header, even though disabled when
building Linux-PAM, to stay API compatible with previous versions.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-01-24 18:19:29 +01:00
Tobias Stoeckmann
70773c1a25 modules: add pamc headers to the search path only when needed
The pam client library libpamc is only needed if libpam_misc is in use.
But libpam_misc is only used by an SELinux helper binary.

Remove the libpamc includes from the search path in all other cases.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-01-21 22:36:10 +00:00
Tobias Stoeckmann
2b8895da5e treewide: strictly separate builddir and srcdir
Building outside of source directory fails if --disable-doc is not
explicitly chosen.

This happens because generated files are sometimes expected in the
source directory, where they won't exist.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-01-12 18:01:01 +01:00
Tobias Stoeckmann
f19736ae30 pam_limits: prevent overflow with very long line
The strcpy is not safe anymore because input lines can be very long.
Use strdup instead. If allocation fails, treat the error exactly
like a memory allocation issue in pam_modutil functions.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-01-08 18:54:52 +00:00
Tobias Stoeckmann
13dc0a7754 pam_limits: use getline
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2024-01-03 17:28:06 +00:00
Tobias Stoeckmann
0fb2978d0e treewide: fix typos in comments and documentation
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2023-12-18 09:10:08 +00:00
Tobias Stoeckmann
04134cc04a treewide: fix typos
Typos found with codespell

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2023-12-18 09:10:08 +00:00
Tobias Stoeckmann
eec4358a49 pam_limits: avoid sscanf in parse_config_file
Even though sscanf is easy to use for scanning strings, it has the
drawback that the required memory has to be allocated beforehand.

Since variable "line" is not accessed anymore after sscanf, it is
easier to point into the memory assigned to "line". The function
strtok_r can be used as a replacement for sscanf.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2023-12-12 20:05:08 +00:00
Christian Göttsche
43abfff435 modules: cast to unsigned char for character handling function
Character handling functions, like isspace(3), expect a value
representable as unsigned char or equal to EOF.  Otherwise the behavior
is undefined.

See https://wiki.sei.cmu.edu/confluence/display/c/STR37-C.+Arguments+to+character-handling+functions+must+be+representable+as+an+unsigned+char
2023-08-07 10:46:40 +00:00
Pino Toscano
bcd540496d pam_limits: build again on non-Linux OSes
Even if this module is supported officially on Linux, make sure it can
still build fine on non-Linux OSes, to ease its testing/fixing a bit:
- build parse_kernel_limits() and stuff needed for it only on Linux,
  as it is called already only on Linux
- limit the code needed to apply the 'nonewprivs' options to Linux only,
  as it uses a Linux-specific way to set it; add a syslog message for
  other OSes
2023-05-12 04:06:53 +00:00
Christian Göttsche
bf07335a19 modules: update Linux detection
GCC and Clang only define the macro `linux` when using the GNU dialect
of C (e.g. -std=gnu11 instead of -std=c11).  Since `linux` is also not
in a reserved namespace it might be target of collisions.
Use the canonical macro `__linux__` instead (already used in
pam_limits.c).
2023-05-07 21:10:23 +02:00
Stefan Schubert
96b70abec2 build: use <vendordir>/security directory for installation if it has been set
Otherwise the corresponding files are still installed in /etc/security.

* configure.ac (AC_SUBST): Add VENDOR_SCONFIGDIR.
(AM_CONDITIONAL): Add HAVE_VENDORDIR.
* modules/*/Makefile.am (secureconfdir): Set to VENDOR_SCONFIGDIR
if HAVE_VENDORDIR has been set, otherwise to SCONFIGDIR.
2023-02-07 08:00:00 +00:00
Dmitry V. Levin
2aae166e5e pam_limits: silence compiler warning
gcc-12 insists on issuing the following warning:

  In file included from /usr/include/string.h:535,
                   from pam_limits.c:24:
  In function 'strncat',
      inlined from 'check_logins' at pam_limits.c:287:6,
      inlined from 'setup_limits' at pam_limits.c:1066:13,
      inlined from 'pam_sm_open_session' at pam_limits.c:1267:14:
  /usr/include/x86_64-linux-gnu/bits/string_fortified.h:138:10: error: '__builtin___strncat_chk' argument 2 declared attribute 'nonstring' [-Werror=stringop-overread]
    138 |   return __builtin___strncat_chk (__dest, __src, __len,
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    139 |                                   __glibc_objsize (__dest));
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /usr/include/utmp.h:29,
                   from pam_limits.c:37:
  /usr/include/x86_64-linux-gnu/bits/utmp.h: In function 'pam_sm_open_session':
  /usr/include/x86_64-linux-gnu/bits/utmp.h:66:8: note: argument 'ut_user' declared here
     66 |   char ut_user[UT_NAMESIZE]
        |        ^~~~~~~

* modules/pam_limits/pam_limits.c (check_logins): Use memcpy instead of
strncat to pacify the compiler.
2023-01-19 08:00:00 +00:00
Stefan Schubert
cf2fc5ff7b doc: Update PAM documentation from DockBook 4 to DocBook 5
Changed files
--------------

Make.xml.rules.in:
- Using RNG file instead of DTD file for checking XML files.
- Taking the correct stylesheet for README files.

doc/sag/Makefile.am, doc/adg/Makefile.am, doc/mwg/Makefile.am:
- Using RNG file instead of DTD file for checking XML files.

configure.ac:
- Adding a new option for selecting RNG check file (-enable-docbook-rng)
- Switching stylesheets to docbook 5
- Checking DocBook 5 environment instead of DocBook 4 environment

*.xml:
Update from DockBook 4 to DocBook 5
2022-12-16 10:31:37 +01:00
Stefan Schubert
21affb5b1b pam_limits: use vendor specific content in limits.d directory as fallback
Use the vendor directory as fallback for a distribution provided default
config if there is no configuration in /etc.

pam_limits.c: Take care about the fallback configuration in vendor directory.
pam_limits.8.xml: Add description for vendor directory.
2022-06-30 09:48:52 +00:00
Dmitry V. Levin
bf6db771b2 pam_limits: use VENDOR_SCONFIGDIR macro
* modules/pam_limits/pam_limits.c (parse_config_file): Use
VENDOR_SCONFIGDIR macro instead of VENDORDIR.
2022-01-23 08:00:00 +00:00
Dmitry V. Levin
5b94cc4352 modules: move SCONFIGDIR-based macro definitions from Makefile.am to the source code
Since SCONFIGDIR macro is available, the is no need to define macros
based on SCONFIGDIR in Makefile.am files.

* modules/pam_access/Makefile.am (AM_CFLAGS): Move definitions of
PAM_ACCESS_CONFIG and ACCESS_CONF_GLOB macros ...
* modules/pam_access/pam_access.c: ... here.
* modules/pam_env/Makefile.am (AM_CFLAGS): Move definition of
DEFAULT_CONF_FILE macro ...
* modules/pam_env/pam_env.c: ... here.
* modules/pam_group/Makefile.am (AM_CFLAGS): Move definition of
PAM_GROUP_CONF macro ...
* modules/pam_group/pam_group.c: ... here.
* modules/pam_limits/Makefile.am (AM_CFLAGS): Move definition of
LIMITS_FILE macro ...
* modules/pam_limits/pam_limits.c: ... here.
* modules/pam_sepermit/Makefile.am (AM_CFLAGS): Move definition of
SEPERMIT_CONF_FILE macro ...
* modules/pam_sepermit/pam_sepermit.c: ... here.
* modules/pam_time/Makefile.am (AM_CFLAGS): Move definition of
PAM_TIME_CONF macro ...
* modules/pam_time/pam_time.c: ... here.
2022-01-23 08:00:00 +00:00
Dmitry V. Levin
f9ef347178 pam_limits: make LIMITS_FILE_DIR macro consistent
LIMITS_FILE_DIR used to define a glob pattern instead of a directory
name, fix that inconsistency.

* modules/pam_limits/Makefile.am (AM_CFLAGS): Move "/*.conf" ending of
LIMITS_FILE_DIR macro ...
* modules/pam_limits/pam_limits.c (LIMITS_CONF_GLOB): ... here.
2022-01-23 08:00:00 +00:00
Thorsten Kukuk
e1870443d5
pam_limits: adjust docu if config file is missing (#426)
This adjustes the documentation for the changes from PR#418
We no longer fail if the config file does not exist.
2022-01-14 14:13:10 +01:00
Ludwig Nussel
14ea1011c6
pam_limits: don't fail on missing config files (#418)
A config with only comments or an empty one is completely fine for
pam_limits. So don't complain about missing config files either.
2022-01-13 09:58:50 +01:00
Dmitry V. Levin
e1bb346554 modules/pam_limits: fix build with old Linux kernel headers
As PR_SET_NO_NEW_PRIVS was introduced by Linux kernel commit
v3.5-rc1~161^2~37, provide a fallback definition to fix build
with older Linux kernel headers.

* modules/pam_limits/pam_limits.c [!PR_SET_NO_NEW_PRIVS]
(PR_SET_NO_NEW_PRIVS): New macro.

Resolves: https://github.com/linux-pam/linux-pam/issues/406
Fixes: dd9cf929 ("modules/pam_limits: add support for nonewprivs")
2021-11-24 08:00:00 +00:00
Thorsten Kukuk
5deaac4231
Use vendor specific limits.conf as fallback (#402)
* Use vendor specific limits.conf as fallback
2021-11-03 09:02:40 +01:00
Josef Moellers
3234488f2c pam_limits: "Unlimited" is not a valid value for RLIMIT_NOFILE.
Replace it with a value obtained from /proc/sys/fs/nr_open

* modules/pam_limits/limits.conf.5.xml: Document the replacement.
* modules/pam_limits/pam_limits.c: Replace unlimited RLIMIT_NOFILE
  value with a value obtained from /proc/sys/fs/nr_open
2021-04-22 10:47:22 +02:00
Dmitry V. Levin
4d928200c2 Fix various typos found using codespell tool
* modules/pam_limits/limits.conf: Replace "overriden" with "overridden".
* modules/pam_mkhomedir/mkhomedir_helper.c (create_homedir): Replace
"preseves" with "preserves".
* modules/pam_setquota/pam_setquota.8.xml: Replace "specifed" with
"specified".
* modules/pam_setquota/pam_setquota.c (pam_sm_open_session): Replace
"fileystem" with "filesystem", "conditons" with "conditions".
2020-11-24 18:00:00 +00:00
Dmitry V. Levin
5a768e62f0 Fix grammar: replace "an user" with "a user" everywhere
* NEWS: Replace "an user" with "a user".
* modules/pam_faillock/pam_faillock.8.xml: Likewise.
* modules/pam_lastlog/pam_lastlog.8.xml: Likewise.
* modules/pam_limits/pam_limits.c: Likewise.
* modules/pam_sepermit/sepermit.conf: Likewise.
* modules/pam_tty_audit/pam_tty_audit.8.xml: Likewise.
* modules/pam_userdb/pam_userdb.c: Likewise.
2020-11-24 18:00:00 +00:00
ikerexxe
adc037167a pam_limits: clarify configuration file
Resolves: https://github.com/linux-pam/linux-pam/pull/249
2020-06-29 08:27:52 +00:00
Vito Caputo
dd9cf929e7 modules/pam_limits: add support for nonewprivs
Expose prctl(PR_SET_NO_NEW_PRIVS) as "nonewprivs" item.

The valid values are a boolean toggle 0/1 to keep semi-consistent
with the other numeric limits.  It's slightly awkward as this is
an oddball relative to the other items in pam_limits but outside
of the item value itself this does seem at home in pam_limits.

Resolves: https://github.com/linux-pam/linux-pam/issues/224
Resolves: https://github.com/linux-pam/linux-pam/pull/225
2020-06-22 23:26:13 +00:00
Dmitry V. Levin
37b5259298 modules: remove PAM_SM_* macros
Starting with commit a684595c0b aka
Linux-PAM-1.3.0~14 (Remove "--enable-static-modules" option and support
from Linux-PAM), PAM_SM_* macros have no effect.
2020-05-03 12:21:11 +00:00
Dmitry V. Levin
f7d09edb72 modules/*/Makefile.am: rename TESTS to dist_check_SCRIPTS
... and remove $(TESTS) from EXTRA_DIST.

The change is performed automatically using the following script:
  sed -i -e 's/^TESTS = \(tst.*\)/dist_check_SCRIPTS = \1\nTESTS = $(dist_check_SCRIPTS)/' \
         -e '/^EXTRA_DIST/ s/ \$(TESTS)//' modules/*/Makefile.am
2020-05-03 12:21:11 +00:00
Dmitry V. Levin
b0321cdecc modules/*/Makefile.am: rename man_MANS to dist_man_MANS
... and remove $(MANS) from EXTRA_DIST.

The change is performed automatically using the following script:
  sed -i 's/^man_MANS/dist_&/; /^EXTRA_DIST/ s/ \$(MANS)//' modules/*/Makefile.am
2020-05-03 12:21:11 +00:00
Dmitry V. Levin
97887fd27d modules/*/Makefile.am: add dist_ prefix to *_DATA
... and remove $(DATA) from EXTRA_DIST.

The change is performed automatically using the following script:
  sed -i 's/^[a-z]*_DATA/dist_&/; /^EXTRA_DIST/ s/ \$(DATA)//' modules/*/Makefile.am
2020-05-03 12:21:11 +00:00
Dmitry V. Levin
f576553fc0 modules/*/Makefile.am: remove $(secureconf_DATA) from EXTRA_DIST
Since the whole $(DATA) is listed in EXTRA_DIST, $(secureconf_DATA)
can be safely de-listed.

* modules/pam_access/Makefile.am (EXTRA_DIST): Remove
$(secureconf_DATA).
* modules/pam_env/Makefile.am: Likewise.
* modules/pam_group/Makefile.am: Likewise.
* modules/pam_limits/Makefile.am: Likewise.
* modules/pam_namespace/Makefile.am: Likewise.
* modules/pam_sepermit/Makefile.am: Likewise.
* modules/pam_time/Makefile.am: Likewise.
2020-04-27 15:34:04 +00:00
Dmitry V. Levin
d8a518391c modules/*/Makefile.am: replace README with $(DATA) in EXTRA_DIST
Since the GNU Automake distributes README files by default, the only
reason why README had to be listed in EXTRA_DIST was to make these
README files generated.

Since README is also listed in noinst_DATA, we can safely replace
README in EXTRA_DIST with $(DATA), this also opens the way for
further EXTRA_DIST cleanup.

* modules/*/Makefile.am (EXTRA_DIST): Replace README with $(DATA).
2020-04-27 15:34:04 +00:00
Dmitry V. Levin
d9fe742a06 modules/*/Makefile.am: reorder lines to promote uniformity
This is essentially a no-op change that makes modules/*/Makefile.am
files less divergent.
2020-04-27 15:34:04 +00:00
Dmitry V. Levin
1886b6020c build: move README prerequisites rule from modules/*/Makefile.am to Make.xml.rules
As the rule is now the same in every modules/*/Makefile.am file,
move it to Make.xml.rules.

* Make.xml.rules (README): New prerequisites rule.
* modules/pam_access/Makefile.am (README): Remove rule.
* modules/pam_cracklib/Makefile.am (README): Likewise.
* modules/pam_debug/Makefile.am (README): Likewise.
* modules/pam_deny/Makefile.am (README): Likewise.
* modules/pam_echo/Makefile.am (README): Likewise.
* modules/pam_env/Makefile.am (README): Likewise.
* modules/pam_exec/Makefile.am (README): Likewise.
* modules/pam_faildelay/Makefile.am (README): Likewise.
* modules/pam_filter/Makefile.am (README): Likewise.
* modules/pam_ftp/Makefile.am (README): Likewise.
* modules/pam_group/Makefile.am (README): Likewise.
* modules/pam_issue/Makefile.am (README): Likewise.
* modules/pam_keyinit/Makefile.am (README): Likewise.
* modules/pam_lastlog/Makefile.am (README): Likewise.
* modules/pam_limits/Makefile.am (README): Likewise.
* modules/pam_listfile/Makefile.am (README): Likewise.
* modules/pam_localuser/Makefile.am (README): Likewise.
* modules/pam_loginuid/Makefile.am (README): Likewise.
* modules/pam_mail/Makefile.am (README): Likewise.
* modules/pam_mkhomedir/Makefile.am (README): Likewise.
* modules/pam_motd/Makefile.am (README): Likewise.
* modules/pam_namespace/Makefile.am (README): Likewise.
* modules/pam_nologin/Makefile.am (README): Likewise.
* modules/pam_permit/Makefile.am (README): Likewise.
* modules/pam_pwhistory/Makefile.am (README): Likewise.
* modules/pam_rhosts/Makefile.am (README): Likewise.
* modules/pam_rootok/Makefile.am (README): Likewise.
* modules/pam_securetty/Makefile.am (README): Likewise.
* modules/pam_selinux/Makefile.am (README): Likewise.
* modules/pam_sepermit/Makefile.am (README): Likewise.
* modules/pam_setquota/Makefile.am (README): Likewise.
* modules/pam_shells/Makefile.am (README): Likewise.
* modules/pam_succeed_if/Makefile.am (README): Likewise.
* modules/pam_tally/Makefile.am (README): Likewise.
* modules/pam_tally2/Makefile.am (README): Likewise.
* modules/pam_time/Makefile.am (README): Likewise.
* modules/pam_timestamp/Makefile.am (README): Likewise.
* modules/pam_tty_audit/Makefile.am (README): Likewise.
* modules/pam_umask/Makefile.am (README): Likewise.
* modules/pam_unix/Makefile.am (README): Likewise.
* modules/pam_userdb/Makefile.am (README): Likewise.
* modules/pam_usertype/Makefile.am (README): Likewise.
* modules/pam_warn/Makefile.am (README): Likewise.
* modules/pam_wheel/Makefile.am (README): Likewise.
* modules/pam_xauth/Makefile.am (README): Likewise.
2020-04-27 15:34:04 +00:00
Dmitry V. Levin
bd849daab0 modules/*/Makefile.am: list prerequisites of README target uniformly
There is no need to list prerequisites of README targets manually as
all README targets depend on $(XMLS).

The change is performed automatically using the following script:
  sed -i 's/^README: pam_.*/README: $(XMLS)/' modules/*/Makefile.am

* modules/pam_access/Makefile.am (README): Replace pam_access.8.xml
and access.conf.5.xml with $(XMLS).
* modules/pam_cracklib/Makefile.am (README): Replace pam_cracklib.8.xml
with $(XMLS).
* modules/pam_debug/Makefile.am (README): Replace pam_debug.8.xml
with $(XMLS).
* modules/pam_deny/Makefile.am (README): Replace pam_deny.8.xml
with $(XMLS).
* modules/pam_echo/Makefile.am (README): Replace pam_echo.8.xml
with $(XMLS).
* modules/pam_env/Makefile.am (README): Replace pam_env.8.xml and
pam_env.conf.5.xml with $(XMLS).
* modules/pam_exec/Makefile.am (README): Replace pam_exec.8.xml
with $(XMLS).
* modules/pam_faildelay/Makefile.am (README): Replace
pam_faildelay.8.xml with $(XMLS).
* modules/pam_filter/Makefile.am (README): Replace pam_filter.8.xml
with $(XMLS).
* modules/pam_ftp/Makefile.am (README): Replace pam_ftp.8.xml with
$(XMLS).
* modules/pam_group/Makefile.am (README): Replace pam_group.8.xml
and group.conf.5.xml with $(XMLS).
* modules/pam_issue/Makefile.am (README): Replace pam_issue.8.xml
with $(XMLS).
* modules/pam_keyinit/Makefile.am (README): Replace pam_keyinit.8.xml
with $(XMLS).
* modules/pam_lastlog/Makefile.am (README): Replace pam_lastlog.8.xml
with $(XMLS).
* modules/pam_limits/Makefile.am (README): Replace pam_limits.8.xml
and limits.conf.5.xml with $(XMLS).
* modules/pam_listfile/Makefile.am (README): Replace pam_listfile.8.xml
with $(XMLS).
* modules/pam_localuser/Makefile.am (README): Replace
pam_localuser.8.xml with $(XMLS).
* modules/pam_loginuid/Makefile.am (README): Replace pam_loginuid.8.xml
with $(XMLS).
* modules/pam_mail/Makefile.am (README): Replace pam_mail.8.xml
with $(XMLS).
* modules/pam_mkhomedir/Makefile.am (README): Replace
pam_mkhomedir.8.xml with $(XMLS).
* modules/pam_motd/Makefile.am (README): Replace pam_motd.8.xml
with $(XMLS).
* modules/pam_namespace/Makefile.am (README): Replace
pam_namespace.8.xml, namespace.conf.5.xml,
and pam_namespace_helper.8.xml with $(XMLS).
* modules/pam_nologin/Makefile.am (README): Replace pam_nologin.8.xml
with $(XMLS).
* modules/pam_permit/Makefile.am (README): Replace pam_permit.8.xml
with $(XMLS).
* modules/pam_pwhistory/Makefile.am (README): Replace
pam_pwhistory.8.xml with $(XMLS).
* modules/pam_rhosts/Makefile.am (README): Replace pam_rhosts.8.xml
with $(XMLS).
* modules/pam_rootok/Makefile.am (README): Replace pam_rootok.8.xml
with $(XMLS).
* modules/pam_securetty/Makefile.am (README): Replace
pam_securetty.8.xml with $(XMLS).
* modules/pam_selinux/Makefile.am (README): Replace pam_selinux.8.xml
with $(XMLS).
* modules/pam_sepermit/Makefile.am (README): Replace pam_sepermit.8.xml
with $(XMLS).
* modules/pam_setquota/Makefile.am (README): Replace pam_setquota.8.xml
with $(XMLS).
* modules/pam_shells/Makefile.am (README): Replace pam_shells.8.xml
with $(XMLS).
* modules/pam_succeed_if/Makefile.am (README): Replace
pam_succeed_if.8.xml with $(XMLS).
* modules/pam_tally/Makefile.am (README): Replace pam_tally.8.xml
with $(XMLS).
* modules/pam_tally2/Makefile.am (README): Replace pam_tally2.8.xml
with $(XMLS).
* modules/pam_time/Makefile.am (README): Replace pam_time.8.xml and
time.conf.5.xml with $(XMLS).
* modules/pam_timestamp/Makefile.am (README): Replace
pam_timestamp.8.xml with $(XMLS).
* modules/pam_tty_audit/Makefile.am (README): Replace
pam_tty_audit.8.xml with $(XMLS).
* modules/pam_umask/Makefile.am (README): Replace pam_umask.8.xml
with $(XMLS).
* modules/pam_unix/Makefile.am (README): Replace pam_unix.8.xml
with $(XMLS).
* modules/pam_userdb/Makefile.am (README): Replace pam_userdb.8.xml
with $(XMLS).
* modules/pam_usertype/Makefile.am (README): Replace pam_usertype.8.xml
with $(XMLS).
* modules/pam_warn/Makefile.am (README): Replace pam_warn.8.xml
with $(XMLS).
* modules/pam_wheel/Makefile.am (README): Replace pam_wheel.8.xml
with $(XMLS).
* modules/pam_xauth/Makefile.am (README): Replace pam_xauth.8.xml
with $(XMLS).
2020-04-27 15:34:04 +00:00
Dmitry V. Levin
b94608b25a modules/*/Makefile.am: list secureconf_DATA files in EXTRA_DIST uniformly
The change was prepared using the following script:
  git grep -l secureconf_DATA modules/*/Makefile.am |while read m; do
    t="$(sed '/^secureconf_DATA = /!d;s///;q' -- "$m")"
    sed -i "/^EXTRA_DIST =/ s/\\<$t\\>/\$(secureconf_DATA)/" -- "$m"
  done

* modules/pam_access/Makefile.am (EXTRA_DIST): Replace access.conf with
$(secureconf_DATA).
* modules/pam_env/Makefile.am (EXTRA_DIST): Replace pam_env.conf with
$(secureconf_DATA).
* modules/pam_group/Makefile.am (EXTRA_DIST): Replace group.conf with
$(secureconf_DATA).
* modules/pam_limits/Makefile.am (EXTRA_DIST): Replace limits.conf with
$(secureconf_DATA).
* modules/pam_namespace/Makefile.am (EXTRA_DIST): Replace namespace.conf
with $(secureconf_DATA).
* modules/pam_sepermit/Makefile.am (EXTRA_DIST): Replace sepermit.conf
with $(secureconf_DATA).
* modules/pam_time/Makefile.am (EXTRA_DIST): Replace time.conf with
$(secureconf_DATA).
2020-04-27 15:34:04 +00:00