diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-03-11 22:58:25 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-03-11 22:58:25 +1100 |
commit | 52358d6df32d9ae923572c43a58159d84b673631 (patch) | |
tree | 83261a70dd007f2af900e1b22884c75b703f8b37 /monitor.c | |
parent | fe1cf97ee811dc7a2bb7cea912c9292c976ab5af (diff) | |
download | openssh-git-52358d6df32d9ae923572c43a58159d84b673631.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); |