mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-23 09:43:36 +08:00
f9c9c72121
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 |
||
---|---|---|
.. | ||
.gitignore | ||
access.conf | ||
group.conf | ||
limits.conf | ||
Makefile.am | ||
run-xtests.sh | ||
time.conf | ||
tst-pam_access1.c | ||
tst-pam_access1.pamd | ||
tst-pam_access1.sh | ||
tst-pam_access2.c | ||
tst-pam_access2.pamd | ||
tst-pam_access2.sh | ||
tst-pam_access3.c | ||
tst-pam_access3.pamd | ||
tst-pam_access3.sh | ||
tst-pam_access4.c | ||
tst-pam_access4.pamd | ||
tst-pam_access4.sh | ||
tst-pam_assemble_line1.pamd | ||
tst-pam_assemble_line1.sh | ||
tst-pam_authfail.c | ||
tst-pam_authfail.pamd | ||
tst-pam_authsucceed.c | ||
tst-pam_authsucceed.pamd | ||
tst-pam_cracklib1.c | ||
tst-pam_cracklib1.pamd | ||
tst-pam_cracklib2.c | ||
tst-pam_cracklib2.pamd | ||
tst-pam_dispatch1.c | ||
tst-pam_dispatch1.pamd | ||
tst-pam_dispatch2.c | ||
tst-pam_dispatch2.pamd | ||
tst-pam_dispatch3.c | ||
tst-pam_dispatch3.pamd | ||
tst-pam_dispatch4.c | ||
tst-pam_dispatch4.pamd | ||
tst-pam_dispatch5.c | ||
tst-pam_dispatch5.pamd | ||
tst-pam_group1.c | ||
tst-pam_group1.pamd | ||
tst-pam_group1.sh | ||
tst-pam_limits1.c | ||
tst-pam_limits1.pamd | ||
tst-pam_limits1.sh | ||
tst-pam_motd1.pamd | ||
tst-pam_motd1.sh | ||
tst-pam_motd2.pamd | ||
tst-pam_motd2.sh | ||
tst-pam_motd3.pamd | ||
tst-pam_motd3.sh | ||
tst-pam_motd.c | ||
tst-pam_motd.sh | ||
tst-pam_pwhistory1.c | ||
tst-pam_pwhistory1.pamd | ||
tst-pam_pwhistory1.sh | ||
tst-pam_substack1.pamd | ||
tst-pam_substack1.sh | ||
tst-pam_substack1a.pamd | ||
tst-pam_substack2.pamd | ||
tst-pam_substack2.sh | ||
tst-pam_substack2a.pamd | ||
tst-pam_substack3.pamd | ||
tst-pam_substack3.sh | ||
tst-pam_substack3a.pamd | ||
tst-pam_substack4.pamd | ||
tst-pam_substack4.sh | ||
tst-pam_substack4a.pamd | ||
tst-pam_substack5.pamd | ||
tst-pam_substack5.sh | ||
tst-pam_substack5a.pamd | ||
tst-pam_succeed_if1.c | ||
tst-pam_succeed_if1.pamd | ||
tst-pam_succeed_if1.sh | ||
tst-pam_time1.c | ||
tst-pam_time1.pamd | ||
tst-pam_unix1.c | ||
tst-pam_unix1.pamd | ||
tst-pam_unix1.sh | ||
tst-pam_unix2.c | ||
tst-pam_unix2.pamd | ||
tst-pam_unix2.sh | ||
tst-pam_unix3.c | ||
tst-pam_unix3.pamd | ||
tst-pam_unix3.sh | ||
tst-pam_unix4.c | ||
tst-pam_unix4.pamd | ||
tst-pam_unix4.sh |