linux-pam/xtests
Robert Fairley f9c9c72121 pam_motd: Support multiple motd paths specified, with filename overrides (#69)
Adds specifying multiple paths to motd files and motd.d
directories to be displayed. A colon-separated list of
paths is specified as arguments motd and motd_dir to the
pam_motd module.

This gives packages several options to install motd files to.
By default, the paths are, with highest priority first:
/etc/motd
/run/motd
/usr/lib/motd
/etc/motd.d/
/run/motd.d/
/usr/lib/motd.d/

Which is equivalent to the following arguments:
motd=/etc/motd:/run/motd:/usr/lib/motd
motd_dir=/etc/motd.d:/run/motd.d:/usr/lib/motd.d

Files with the same filename in a lower-priority directory,
as specified by the order in the colon-separated list, are
overridden, meaning PAM will not display them.

This allows a package to contain motd files under
/usr/lib instead of the host configuration in /etc.
A service may also write a dynamically generated motd in
/run/motd.d/ and have PAM display it without needing a
symlink from /etc/motd.d/ installed.

Closes #68

* modules/pam_motd/pam_motd.8.xml: update documentation
* modules/pam_motd/pam_motd.c: add specifying multiple motd paths
* xtests/.gitignore: add generated test script
* xtests/Makefile.am: add test source, scripts and config files
* xtests/tst-pam_motd.c: create
* xtests/tst-pam_motd.sh: create
* xtests/tst-pam_motd1.pamd: create
* xtests/tst-pam_motd1.sh: create
* xtests/tst-pam_motd2.pamd: create
* xtests/tst-pam_motd2.sh: create
* xtests/tst-pam_motd3.pamd: create
* xtests/tst-pam_motd3.sh: create
2018-11-19 09:00:16 +01:00
..
.gitignore pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
access.conf Relevant BUGIDs: 2009-02-25 15:50:21 +00:00
group.conf Fix whitespace issues 2011-10-26 23:56:54 +00:00
limits.conf Relevant BUGIDs: 2007-06-26 10:45:42 +00:00
Makefile.am pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
run-xtests.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
time.conf Relevant BUGIDs: debian #326407 2008-11-24 14:13:04 +00:00
tst-pam_access1.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_access1.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_access1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_access2.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_access2.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_access2.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_access3.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_access3.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_access3.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_access4.c Relevant BUGIDs: 2009-02-25 15:50:21 +00:00
tst-pam_access4.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_access4.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_assemble_line1.pamd Relevant BUGIDs: 2008-02-18 17:57:34 +00:00
tst-pam_assemble_line1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_authfail.c Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_authfail.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_authsucceed.c Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_authsucceed.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_cracklib1.c Relevant BUGIDs: 2008-12-03 14:16:33 +00:00
tst-pam_cracklib1.pamd Relevant BUGIDs: 2006-08-24 11:26:10 +00:00
tst-pam_cracklib2.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_cracklib2.pamd Relevant BUGIDs: 1688777 2007-06-20 13:54:08 +00:00
tst-pam_dispatch1.c Relevant BUGIDs: 2006-08-30 08:45:30 +00:00
tst-pam_dispatch1.pamd Relevant BUGIDs: 2006-08-05 08:03:11 +00:00
tst-pam_dispatch2.c Relevant BUGIDs: 2006-08-30 08:45:30 +00:00
tst-pam_dispatch2.pamd Relevant BUGIDs: 2006-08-05 08:03:11 +00:00
tst-pam_dispatch3.c Relevant BUGIDs: 2006-08-30 08:45:30 +00:00
tst-pam_dispatch3.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_dispatch4.c Relevant BUGIDs: 2007-10-18 11:02:57 +00:00
tst-pam_dispatch4.pamd Relevant BUGIDs: 2007-10-18 11:02:57 +00:00
tst-pam_dispatch5.c Relevant BUGIDs: 2007-10-12 10:46:25 +00:00
tst-pam_dispatch5.pamd Relevant BUGIDs: 2007-10-12 10:46:25 +00:00
tst-pam_group1.c Relevant BUGIDs: 1976310 2008-07-09 14:37:51 +00:00
tst-pam_group1.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_group1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_limits1.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_limits1.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_limits1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_motd1.pamd pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd1.sh pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd2.pamd pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd2.sh pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd3.pamd pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd3.sh pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd.c pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_motd.sh pam_motd: Support multiple motd paths specified, with filename overrides (#69) 2018-11-19 09:00:16 +01:00
tst-pam_pwhistory1.c Relevant BUGIDs: 2008-10-10 06:53:45 +00:00
tst-pam_pwhistory1.pamd Reflect the enforce_for_root semantics change in pam_pwhistory xtest. 2012-11-13 09:19:05 +01:00
tst-pam_pwhistory1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_substack1.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_substack1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_substack1a.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack2.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack2.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_substack2a.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack3.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack3.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_substack3a.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack4.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack4.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_substack4a.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack5.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_substack5.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_substack5a.pamd Relevant BUGIDs: 2007-10-19 17:06:29 +00:00
tst-pam_succeed_if1.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_succeed_if1.pamd Relevant BUGIDs: 2007-09-27 14:16:32 +00:00
tst-pam_succeed_if1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_time1.c Relevant BUGIDs: 2008-11-24 16:01:19 +00:00
tst-pam_time1.pamd Relevant BUGIDs: 2008-11-24 16:01:19 +00:00
tst-pam_unix1.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_unix1.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_unix1.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_unix2.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_unix2.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_unix2.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_unix3.c Relevant BUGIDs: 1822761 2007-11-06 15:24:26 +00:00
tst-pam_unix3.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_unix3.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00
tst-pam_unix4.c Relevant BUGIDs: debian#514437 rhbz#487216 2009-02-26 18:56:12 +00:00
tst-pam_unix4.pamd Fix whitespace issues 2011-10-26 23:56:54 +00:00
tst-pam_unix4.sh xtests: remove bash dependency 2016-06-30 15:21:18 +02:00