summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-04-23 20:28:48 +1000
committerDamien Miller <djm@mindrot.org>2002-04-23 20:28:48 +1000
commit7941855f09b067b639d72757ee3b1d5be1925d50 (patch)
tree0e94366b3fdd991cae8de9d0ce04a4f374fa12cf /monitor_wrap.c
parent594a71b9b92af786d34d8d961162374e5e4af72f (diff)
- (djm) Make privsep work with PAM (still experimental)
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 53bf59b5b..0fe5bc10d 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -623,6 +623,23 @@ mm_session_pty_cleanup2(void *session)
623 s->ttyfd = -1; 623 s->ttyfd = -1;
624} 624}
625 625
626#ifdef USE_PAM
627void
628mm_start_pam(char *user)
629{
630 Buffer m;
631
632 debug3("%s entering", __FUNCTION__);
633
634 buffer_init(&m);
635 buffer_put_cstring(&m, user);
636
637 mm_request_send(monitor->m_recvfd, MONITOR_REQ_PAM_START, &m);
638
639 buffer_free(&m);
640}
641#endif /* USE_PAM */
642
626/* Request process termination */ 643/* Request process termination */
627 644
628void 645void