diff options
author | Iker Pedrosa <ipedrosa@redhat.com> | 2022-04-19 16:15:52 +0200 |
---|---|---|
committer | Iker Pedrosa <ipedrosa@redhat.com> | 2022-05-24 13:20:18 +0200 |
commit | 9bcbe96d9e82a23d983c0618178a8dc25596ac2d (patch) | |
tree | cc345a4a31828c7fdd5c84c82d9467ed78d40f09 /modules/pam_faillock/faillock.h | |
parent | d3b73b6cd818f4fd9c923822592eccbe8ecdd121 (diff) | |
download | pam-9bcbe96d9e82a23d983c0618178a8dc25596ac2d.tar.gz pam-9bcbe96d9e82a23d983c0618178a8dc25596ac2d.tar.bz2 pam-9bcbe96d9e82a23d983c0618178a8dc25596ac2d.zip |
pam_faillock: move config to its own file
The configuration load can be reused by faillock.
* modules/pam_faillock/faillock_config.c: Move configuration loading
functions (read_config_file and set_conf_opt) to this file.
* modules/pam_faillock/faillock_config.h: Move configuration loading
macros and structures.
* modules/pam_faillock/Makefile.am: Add faillock_config.
* modules/pam_faillock/faillock.h: Remove configuration loading macros.
* modules/pam_faillock/pam_faillock.c: Remove configuration loading
functions, macros and structures.
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
Diffstat (limited to 'modules/pam_faillock/faillock.h')
-rw-r--r-- | modules/pam_faillock/faillock.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/pam_faillock/faillock.h b/modules/pam_faillock/faillock.h index c3f157ef..0ea0ffba 100644 --- a/modules/pam_faillock/faillock.h +++ b/modules/pam_faillock/faillock.h @@ -67,10 +67,6 @@ struct tally_data { }; #define FAILLOCK_DEFAULT_TALLYDIR "/var/run/faillock" -#define FAILLOCK_DEFAULT_CONF SCONFIGDIR "/faillock.conf" -#ifdef VENDOR_SCONFIGDIR -#define VENDOR_FAILLOCK_DEFAULT_CONF VENDOR_SCONFIGDIR "/faillock.conf" -#endif int open_tally(const char *dir, const char *user, uid_t uid, int create); int read_tally(int fd, struct tally_data *tallies); |