1
0
Fork 0
mirror of https://github.com/linux-pam/linux-pam.git synced 2026-12-03 15:44:38 +00:00
Linux PAM (Pluggable Authentication Modules for Linux) project
  • C 94.2%
  • Meson 3.5%
  • Shell 1.3%
  • Perl 0.7%
  • Yacc 0.2%
Find a file
Dmitry V. Levin a9eba8dc36 pam_timestamp: make the name test independent of the host filesystem
Directory checks can fail before the test reaches username validation.
Supply known-good directory metadata in the test so it exercises name
handling regardless of how the host filesystem is configured.

Fixes: 4196709b72 ("pam_timestamp: reject unsafe usernames before building cache paths")
2026-12-01 16:00:00 +00:00
.github/workflows CI: add GCC 16 and Clang 20-22 jobs 2026-10-11 08:00:00 +00:00
aux meson: build Linux-PAM using meson 2024-09-10 08:00:00 +00:00
ChangeLog.old Move all historic changelog files to a top-level ChangeLog.old directory 2024-05-15 08:00:00 +00:00
ci CI: install libcrypt-dev package 2026-10-11 08:00:00 +00:00
conf treewide: annotate switch fallthrough with an attribute 2026-09-18 08:00:00 +00:00
doc Make the runtime state directory configurable and default to /run 2026-11-15 15:46:47 +01:00
examples check_user: use pam_unix.so as example config 2025-08-20 14:16:58 +02:00
libpam pam_modutil_getlogin: detect at build time whether getlogin() is broken 2026-11-25 14:57:31 +01:00
libpam_internal libpam_internal: check that usr_conf_dir is not NULL 2026-11-29 08:00:00 +00:00
libpam_misc libpam_misc: reject NULL message and response pointers in misc_conv 2026-11-16 08:00:00 +00:00
libpamc libpamc: fix out-of-bounds write when listing multiple agents 2026-11-30 08:00:00 +00:00
maint maint: update release procedure 2026-11-30 08:00:00 +00:00
modules pam_timestamp: make the name test independent of the host filesystem 2026-12-01 16:00:00 +00:00
po Prepare for 1.7.4 release 2026-12-01 12:00:00 +00:00
tests libpam: add pam_modutil_user_in_group_nam_pat() 2026-11-14 08:00:00 +00:00
xtests build: do not use fs.name() on a build target in xtests 2026-09-18 08:00:00 +00:00
.gitattributes build: drop autotools support 2024-10-23 08:00:00 +00:00
AUTHORS AUTHORS: update the list of current maintainers 2025-02-18 08:57:25 +01:00
COPYING Fix whitespace issues 2011-10-26 23:56:54 +00:00
Copyright Fix whitespace issues 2011-10-26 23:56:54 +00:00
meson.build Prepare for 1.7.4 release 2026-12-01 12:00:00 +00:00
meson_options.txt pam_modutil_getlogin: detect at build time whether getlogin() is broken 2026-11-25 14:57:31 +01:00
NEWS Prepare for 1.7.4 release 2026-12-01 12:00:00 +00:00
pgp.keys.asc pgp.keys.asc: update 2026-01-22 08:00:00 +00:00
README pam_modutil_getlogin: detect at build time whether getlogin() is broken 2026-11-25 14:57:31 +01:00
zanata.xml Project registered at Zanata (fedora.zanata.org) for translations. 2016-04-14 17:48:03 +02:00

Hello!

Thanks for downloading Linux-PAM.

NOTES:

How to use it is as follows:

Please look at the ci/install-dependencies.sh for the necessary
prerequisite packages to be able to build the Linux-PAM. The script
is targeted at Debian based Linux distributions so the package
names and availability might differ on other distributions.

First, configure the build using meson setup:

      mkdir build
      meson setup <your-options> build

Then compile:

      meson compile -C build

To make sure everything was compiled correct, run:

      meson test -C build

If a test fails, you should not continue to install this build.
These tests require a suitable file /etc/pam.d/other; if necessary,
create such a file containing, e.g., these five lines (not indented)

	#%PAM-1.0
	auth	 required	pam_deny.so
	account	 required	pam_deny.so
	password required	pam_deny.so
	session	 required	pam_deny.so


Note, if you are worried - don't even think about doing the next line
(most Linux distributions already support PAM out of the box, so if
something goes wrong with installing the code from this version your
box may stop working..)

      meson install -C build

That said, please report problems to the bug reporting database
at https://github.com/linux-pam/linux-pam/issues .

To generate manual pages from the XML source files you need the
docbook-xsl stylesheets in version 1.69.1 or newer, older versions had
a bug which generates a broken layout.

Cross-compilation and getlogin():

The default -Dgetlogin=auto disables getlogin() if it honours LOGNAME
(e.g., musl), or if the probe cannot establish safety.  The configuration
summary reports the decision and reason.  For cross-builds, configure
Meson's exe_wrapper with the target runtime libraries to run the probe,
or select explicitly:
  - -Dgetlogin=enabled bypasses detection; use only for a target libc
    known not to derive the user name from LOGNAME.
  - -Dgetlogin=disabled keeps it disabled for unsafe or unknown targets.