diff options
author | dtucker <dtucker> | 2008-03-11 11:58:25 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2008-03-11 11:58:25 +0000 |
commit | d8fdea659ecef6e8ede5cfba19e1b2387a586cc8 (patch) | |
tree | cf4bcd0307e86bbd196723452354253280aa3464 /monitor.c | |
parent | 009efe32557c3545ba01d3069ce8b9efc0f7753a (diff) | |
download | openssh-d8fdea659ecef6e8ede5cfba19e1b2387a586cc8.tar.gz |
- (dtucker) [auth-pam.c monitor.c session.c sshd.c] Bug #926: Move
pam_open_session and pam_close_session into the privsep monitor, which
will ensure that pam_session_close is called as root. Patch from Tomas
Mraz.
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1547,6 +1547,11 @@ mm_answer_term(int sock, Buffer *req) /* The child is terminating */ session_destroy_all(&mm_session_close); +#ifdef USE_PAM + if (options.use_pam) + sshpam_cleanup(); +#endif + while (waitpid(pmonitor->m_pid, &status, 0) == -1) if (errno != EINTR) exit(1); |