Skip to content

Commit

Permalink
pam: Config file support
Browse files Browse the repository at this point in the history
The configuration file defines the default behaviour of pam_u2f.
Individual module invocations under /etc/pam.d can override
settings.

The file-system location of the config file is by default
$sysconfdir/security/pam_u2f.conf, where $sysconfdir is supplied at
build time.

A new module configuration, "conf=", allows to override it at
runtime. Only absolute paths are accepted.
  • Loading branch information
dacav committed Jan 5, 2025
1 parent 45bff88 commit 7bf3f0b
Show file tree
Hide file tree
Showing 5 changed files with 364 additions and 50 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ AM_CPPFLAGS = $(LIBFIDO2_CFLAGS) $(LIBCRYPTO_CFLAGS)
if ENABLE_FUZZING
AM_CPPFLAGS += -fsanitize=fuzzer-no-link
endif
AM_CPPFLAGS += -D SCONFDIR='"@SCONFDIR@"'

noinst_LTLIBRARIES = libmodule.la
libmodule_la_SOURCES = pam-u2f.c
Expand Down
Loading

0 comments on commit 7bf3f0b

Please sign in to comment.