summaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-09-17 04:00:13 +0200
committerDarren Tucker <dtucker@zip.com.au>2006-09-17 04:00:13 +0200
commit5965ae13e014f6315eeabfb1195646b9d071b844 (patch)
treed637c45f935a274f652d8a1c15af14eeb2a2c113 /monitor.c
parent - (dtucker) [auth-pam.c] Propogate TZ environment variable to PAM auth (diff)
downloadopenssh-5965ae13e014f6315eeabfb1195646b9d071b844.tar.xz
openssh-5965ae13e014f6315eeabfb1195646b9d071b844.zip
- (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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/monitor.c b/monitor.c
index 364bd2316..b20d0c726 100644
--- a/monitor.c
+++ b/monitor.c
@@ -286,7 +286,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_ONCE, mm_answer_audit_command},
+ {MONITOR_REQ_AUDIT_COMMAND, MON_PERMIT|MON_ONCE, mm_answer_audit_command},
#endif
{0, 0, NULL}
};
@@ -660,9 +660,6 @@ mm_answer_pwnamallow(int sock, Buffer *m)
if (options.use_pam)
monitor_permit(mon_dispatch, MONITOR_REQ_PAM_START, 1);
#endif
-#ifdef SSH_AUDIT_EVENTS
- monitor_permit(mon_dispatch, MONITOR_REQ_AUDIT_COMMAND, 1);
-#endif
return (0);
}