Changeset 893 in openpam


Ignore:
Timestamp:
Jan 17, 2017, 2:19:04 PM (4 years ago)
Author:
Dag-Erling Smørgrav
Message:

merge r862: add control flag for fallback to "other" policy

Location:
branches/nooath
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/nooath

    • Property svn:mergeinfo changed
      /trunkmerged: 862
  • branches/nooath/include/security/openpam.h

    r648 r893  
    187187        OPENPAM_RESTRICT_MODULE_NAME,
    188188        OPENPAM_VERIFY_MODULE_FILE,
     189        OPENPAM_FALLBACK_TO_OTHER,
    189190        OPENPAM_NUM_FEATURES
    190191};
  • branches/nooath/lib/libpam/openpam_configure.c

    r796 r893  
    464464                if (pamh->chains[fclt] != NULL)
    465465                        continue;
    466                 if (openpam_load_chain(pamh, PAM_OTHER, fclt) < 0)
    467                         goto load_err;
     466                if (OPENPAM_FEATURE(FALLBACK_TO_OTHER)) {
     467                        if (openpam_load_chain(pamh, PAM_OTHER, fclt) < 0)
     468                                goto load_err;
     469                }
    468470        }
    469471        RETURNC(PAM_SUCCESS);
  • branches/nooath/lib/libpam/openpam_features.c

    r648 r893  
    6666            1
    6767        ),
     68        STRUCT_OPENPAM_FEATURE(
     69            FALLBACK_TO_OTHER,
     70            "Fall back to \"other\" policy for empty chains",
     71            1
     72        ),
    6873};
Note: See TracChangeset for help on using the changeset viewer.