diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-09-17 12:00:13 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-09-17 12:00:13 +1000 |
commit | 5965ae13e014f6315eeabfb1195646b9d071b844 (patch) | |
tree | d637c45f935a274f652d8a1c15af14eeb2a2c113 /monitor.c | |
parent | 54e1b2291cf5fcd96ba36d291e6543eab44ec4dd (diff) |
- (dtucker) [monitor.c] Correctly handle auditing of single commands when
using Protocol 1. From jhb at freebsd.
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -286,7 +286,7 @@ struct mon_table mon_dispatch_postauth15[] = { | |||
286 | {MONITOR_REQ_TERM, 0, mm_answer_term}, | 286 | {MONITOR_REQ_TERM, 0, mm_answer_term}, |
287 | #ifdef SSH_AUDIT_EVENTS | 287 | #ifdef SSH_AUDIT_EVENTS |
288 | {MONITOR_REQ_AUDIT_EVENT, MON_PERMIT, mm_answer_audit_event}, | 288 | {MONITOR_REQ_AUDIT_EVENT, MON_PERMIT, mm_answer_audit_event}, |
289 | {MONITOR_REQ_AUDIT_COMMAND, MON_ONCE, mm_answer_audit_command}, | 289 | {MONITOR_REQ_AUDIT_COMMAND, MON_PERMIT|MON_ONCE, mm_answer_audit_command}, |
290 | #endif | 290 | #endif |
291 | {0, 0, NULL} | 291 | {0, 0, NULL} |
292 | }; | 292 | }; |
@@ -660,9 +660,6 @@ mm_answer_pwnamallow(int sock, Buffer *m) | |||
660 | if (options.use_pam) | 660 | if (options.use_pam) |
661 | monitor_permit(mon_dispatch, MONITOR_REQ_PAM_START, 1); | 661 | monitor_permit(mon_dispatch, MONITOR_REQ_PAM_START, 1); |
662 | #endif | 662 | #endif |
663 | #ifdef SSH_AUDIT_EVENTS | ||
664 | monitor_permit(mon_dispatch, MONITOR_REQ_AUDIT_COMMAND, 1); | ||
665 | #endif | ||
666 | 663 | ||
667 | return (0); | 664 | return (0); |
668 | } | 665 | } |