summaryrefslogtreecommitdiff
path: root/audit-linux.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-07-27 08:18:05 +1000
committerDamien Miller <djm@mindrot.org>2016-07-27 08:18:05 +1000
commit393bd381a45884b589baa9aed4394f1d250255ca (patch)
tree6ac02b73e98b36bc1f9525070bafca51093316a5 /audit-linux.c
parent80e766fb089de4f3c92b1600eb99e9495e37c992 (diff)
fix auditing on Linux
get_remote_ipaddr() was replaced with ssh_remote_ipaddr()
Diffstat (limited to 'audit-linux.c')
-rw-r--r--audit-linux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audit-linux.c b/audit-linux.c
index b3ee2f4da..91a5381ec 100644
--- a/audit-linux.c
+++ b/audit-linux.c
@@ -99,6 +99,8 @@ audit_session_close(struct logininfo *li)
99void 99void
100audit_event(ssh_audit_event_t event) 100audit_event(ssh_audit_event_t event)
101{ 101{
102 struct ssh *ssh = active_state; /* XXX */
103
102 switch(event) { 104 switch(event) {
103 case SSH_AUTH_SUCCESS: 105 case SSH_AUTH_SUCCESS:
104 case SSH_CONNECTION_CLOSE: 106 case SSH_CONNECTION_CLOSE:
@@ -115,7 +117,7 @@ audit_event(ssh_audit_event_t event)
115 case SSH_AUTH_FAIL_GSSAPI: 117 case SSH_AUTH_FAIL_GSSAPI:
116 case SSH_INVALID_USER: 118 case SSH_INVALID_USER:
117 linux_audit_record_event(-1, audit_username(), NULL, 119 linux_audit_record_event(-1, audit_username(), NULL,
118 get_remote_ipaddr(), "sshd", 0); 120 ssh_remote_ipaddr(ssh), "sshd", 0);
119 break; 121 break;
120 122
121 default: 123 default: