Searched refs:pam_handle (Results 1 – 2 of 2) sorted by relevance
/external/selinux/policycoreutils/run_init/ |
D | run_init.c | 111 pam_handle_t *pam_handle; /* opaque handle used by all PAM functions */ in authenticate_via_pam() local 125 &pam_conversation, &pam_handle)) { in authenticate_via_pam() 131 if (PAM_SUCCESS == pam_authenticate(pam_handle, 0)) { in authenticate_via_pam() 138 if (result && (PAM_SUCCESS != pam_acct_mgmt(pam_handle, 0)) ) { in authenticate_via_pam() 144 pam_end(pam_handle, PAM_SUCCESS); in authenticate_via_pam()
|
/external/selinux/policycoreutils/newrole/ |
D | newrole.c | 185 int authenticate_via_pam(const char *ttyn, pam_handle_t * pam_handle) in authenticate_via_pam() argument 198 pam_rc = pam_set_item(pam_handle, PAM_TTY, tty_name); in authenticate_via_pam() 206 pam_rc = pam_authenticate(pam_handle, 0); in authenticate_via_pam() 212 pam_rc = pam_acct_mgmt(pam_handle, 0); in authenticate_via_pam() 1016 pam_handle_t *pam_handle; /* opaque handle used by all PAM functions */ in main() local 1120 &pam_handle); in main() 1126 if (!authenticate_via_pam(ttyn, pam_handle)) in main() 1195 pam_status = pam_close_session(pam_handle, 0); in main() 1198 pam_strerror(pam_handle, pam_status)); in main() 1202 rc = pam_end(pam_handle, pam_status); in main() [all …]
|