Changeset 659 in openpam for trunk/lib


Ignore:
Timestamp:
Mar 11, 2013, 2:10:13 PM (8 years ago)
Author:
Dag-Erling Smørgrav
Message:

Move openpam_policy_path into openpam_constants.c, and add a corresponding
openpam_module_path.

Location:
trunk/lib/libpam
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/libpam/openpam_configure.c

    r648 r659  
    309309}
    310310
    311 static const char *openpam_policy_path[] = {
    312         "/etc/pam.d/",
    313         "/etc/pam.conf",
    314         "/usr/local/etc/pam.d/",
    315         "/usr/local/etc/pam.conf",
    316         NULL
    317 };
    318 
    319311/*
    320312 * Read the specified chains from the specified file.
  • trunk/lib/libpam/openpam_constants.c

    r648 r659  
    126126        "pam_sm_chauthtok"
    127127};
     128
     129const char *openpam_policy_path[] = {
     130        "/etc/pam.d/",
     131        "/etc/pam.conf",
     132        "/usr/local/etc/pam.d/",
     133        "/usr/local/etc/pam.conf",
     134        NULL
     135};
     136
     137const char *openpam_module_path[] = {
     138        "/usr/lib",
     139        "/usr/local/lib",
     140        NULL
     141};
  • trunk/lib/libpam/openpam_constants.h

    r648 r659  
    4040extern const char *pam_sm_func_name[PAM_NUM_PRIMITIVES];
    4141
     42extern const char *openpam_policy_path[];
     43extern const char *openpam_module_path[];
     44
    4245#endif
Note: See TracChangeset for help on using the changeset viewer.