Move openpam_policy_path into openpam_constants.c, and add a corresponding

openpam_module_path.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@659 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2013-03-11 14:10:13 +00:00
parent 429089e868
commit 785bc19867
3 changed files with 17 additions and 8 deletions

View File

@ -308,14 +308,6 @@ fail:
return (-1);
}
static const char *openpam_policy_path[] = {
"/etc/pam.d/",
"/etc/pam.conf",
"/usr/local/etc/pam.d/",
"/usr/local/etc/pam.conf",
NULL
};
/*
* Read the specified chains from the specified file.
*

View File

@ -125,3 +125,17 @@ const char *pam_sm_func_name[PAM_NUM_PRIMITIVES] = {
"pam_sm_close_session",
"pam_sm_chauthtok"
};
const char *openpam_policy_path[] = {
"/etc/pam.d/",
"/etc/pam.conf",
"/usr/local/etc/pam.d/",
"/usr/local/etc/pam.conf",
NULL
};
const char *openpam_module_path[] = {
"/usr/lib",
"/usr/local/lib",
NULL
};

View File

@ -39,4 +39,7 @@ extern const char *pam_control_flag_name[PAM_NUM_CONTROL_FLAGS];
extern const char *pam_func_name[PAM_NUM_PRIMITIVES];
extern const char *pam_sm_func_name[PAM_NUM_PRIMITIVES];
extern const char *openpam_policy_path[];
extern const char *openpam_module_path[];
#endif