diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-03-06 12:31:35 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-03-06 12:31:35 +0100 |
commit | 3745e2bb6261b9ee9408b103b2c003f5320ceff2 (patch) | |
tree | 52243e3741728fc23a54a20e3a3a83269d2322e0 /monitor.c | |
parent | - djm@cvs.openbsd.org 2005/03/04 08:48:06 (diff) | |
download | openssh-3745e2bb6261b9ee9408b103b2c003f5320ceff2.tar.xz openssh-3745e2bb6261b9ee9408b103b2c003f5320ceff2.zip |
- (dtucker) [monitor.c] Bug #125 comment #47: fix errors returned by monitor
when attempting to audit disconnect events. Reported by Phil Dibowitz.
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -192,7 +192,7 @@ struct mon_table mon_dispatch_proto20[] = { {MONITOR_REQ_PAM_FREE_CTX, MON_ONCE|MON_AUTHDECIDE, mm_answer_pam_free_ctx}, #endif #ifdef SSH_AUDIT_EVENTS - {MONITOR_REQ_AUDIT_EVENT, 0, mm_answer_audit_event}, + {MONITOR_REQ_AUDIT_EVENT, MON_PERMIT, mm_answer_audit_event}, #endif #ifdef BSD_AUTH {MONITOR_REQ_BSDAUTHQUERY, MON_ISAUTH, mm_answer_bsdauthquery}, @@ -252,7 +252,7 @@ struct mon_table mon_dispatch_proto15[] = { {MONITOR_REQ_PAM_FREE_CTX, MON_ONCE|MON_AUTHDECIDE, mm_answer_pam_free_ctx}, #endif #ifdef SSH_AUDIT_EVENTS - {MONITOR_REQ_AUDIT_EVENT, 0, mm_answer_audit_event}, + {MONITOR_REQ_AUDIT_EVENT, MON_PERMIT, mm_answer_audit_event}, #endif {0, 0, NULL} }; @@ -263,7 +263,7 @@ struct mon_table mon_dispatch_postauth15[] = { {MONITOR_REQ_TERM, 0, mm_answer_term}, #ifdef SSH_AUDIT_EVENTS {MONITOR_REQ_AUDIT_EVENT, MON_PERMIT, mm_answer_audit_event}, - {MONITOR_REQ_AUDIT_COMMAND, MON_PERMIT|MON_ONCE, mm_answer_audit_command}, + {MONITOR_REQ_AUDIT_COMMAND, MON_ONCE, mm_answer_audit_command}, #endif {0, 0, NULL} }; @@ -629,7 +629,7 @@ mm_answer_pwnamallow(int sock, Buffer *m) monitor_permit(mon_dispatch, MONITOR_REQ_PAM_START, 1); #endif #ifdef SSH_AUDIT_EVENTS - monitor_permit(mon_dispatch, MONITOR_REQ_AUDIT_EVENT, 1); + monitor_permit(mon_dispatch, MONITOR_REQ_AUDIT_COMMAND, 1); #endif return (0); |