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:
parent
429089e868
commit
785bc19867
|
@ -308,14 +308,6 @@ fail:
|
||||||
return (-1);
|
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.
|
* Read the specified chains from the specified file.
|
||||||
*
|
*
|
||||||
|
|
|
@ -125,3 +125,17 @@ const char *pam_sm_func_name[PAM_NUM_PRIMITIVES] = {
|
||||||
"pam_sm_close_session",
|
"pam_sm_close_session",
|
||||||
"pam_sm_chauthtok"
|
"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
|
||||||
|
};
|
||||||
|
|
|
@ -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_func_name[PAM_NUM_PRIMITIVES];
|
||||||
extern const char *pam_sm_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
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue