aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_faillock/faillock.h
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
commita8f47240246fb5a4e7c78dc78a9b6fa7bf240da3 (patch)
tree13a9d7007bea227920c57109a2761697b7021d5d /modules/pam_faillock/faillock.h
parentddc943c6cb42257b0dcba20e6baea4ff370a727c (diff)
downloadpam-a8f47240246fb5a4e7c78dc78a9b6fa7bf240da3.tar.gz
pam-a8f47240246fb5a4e7c78dc78a9b6fa7bf240da3.tar.bz2
pam-a8f47240246fb5a4e7c78dc78a9b6fa7bf240da3.zip
modules: use SCONFIGDIR macro
Use SCONFIGDIR macro instead of open-coding "/etc/security", the latter is not correct when configured using --enable-sconfigdir with an argument different from /etc/security. * modules/pam_faillock/faillock.h (FAILLOCK_DEFAULT_CONF): Use SCONFIGDIR. * modules/pam_namespace/pam_namespace.h (SECURECONF_DIR): Remove. (PAM_NAMESPACE_CONFIG, NAMESPACE_INIT_SCRIPT, NAMESPACE_D_DIR, NAMESPACE_D_GLOB): Use SCONFIGDIR. * modules/pam_namespace/Makefile.am (AM_CFLAGS): Remove -DSECURECONF_DIR. * modules/pam_pwhistory/opasswd.c (OLD_PASSWORDS_FILE): Use SCONFIGDIR. * modules/pam_unix/passverify.h: Likewise. * modules/pam_unix/passverify.c (OPW_TMPFILE): Use SCONFIGDIR.
Diffstat (limited to 'modules/pam_faillock/faillock.h')
-rw-r--r--modules/pam_faillock/faillock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_faillock/faillock.h b/modules/pam_faillock/faillock.h
index b22a9dfb..a6081077 100644
--- a/modules/pam_faillock/faillock.h
+++ b/modules/pam_faillock/faillock.h
@@ -67,7 +67,7 @@ struct tally_data {
};
#define FAILLOCK_DEFAULT_TALLYDIR "/var/run/faillock"
-#define FAILLOCK_DEFAULT_CONF "/etc/security/faillock.conf"
+#define FAILLOCK_DEFAULT_CONF SCONFIGDIR "/faillock.conf"
int open_tally(const char *dir, const char *user, uid_t uid, int create);
int read_tally(int fd, struct tally_data *tallies);