|
Lines 952-958
do_pam_session(void)
Link Here
|
| 952 |
if (sshpam_err != PAM_SUCCESS) |
952 |
if (sshpam_err != PAM_SUCCESS) |
| 953 |
fatal("PAM: pam_open_session(): %s", |
953 |
fatal("PAM: pam_open_session(): %s", |
| 954 |
pam_strerror(sshpam_handle, sshpam_err)); |
954 |
pam_strerror(sshpam_handle, sshpam_err)); |
| 955 |
sshpam_session_open = 1; |
955 |
} |
|
|
956 |
|
| 957 |
/* |
| 958 |
* Because the session modules are run by the forked child just before |
| 959 |
* do_setusercontext, the cleanup must be run (as root) in the parent, so |
| 960 |
* we set this flag in the parent instead. |
| 961 |
*/ |
| 962 |
void |
| 963 |
sshpam_set_session_open(int isopen) |
| 964 |
{ |
| 965 |
sshpam_session_open = isopen; |
| 956 |
} |
966 |
} |
| 957 |
|
967 |
|
| 958 |
/* |
968 |
/* |