[openssh-commits] [openssh] 01/03: fix auditing on Linux

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Jul 27 08:25:53 AEST 2016


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 393bd381a45884b589baa9aed4394f1d250255ca
Author: Damien Miller <djm at mindrot.org>
Date:   Wed Jul 27 08:18:05 2016 +1000

    fix auditing on Linux
    
    get_remote_ipaddr() was replaced with ssh_remote_ipaddr()
---
 audit-linux.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/audit-linux.c b/audit-linux.c
index b3ee2f4..91a5381 100644
--- a/audit-linux.c
+++ b/audit-linux.c
@@ -99,6 +99,8 @@ audit_session_close(struct logininfo *li)
 void
 audit_event(ssh_audit_event_t event)
 {
+	struct ssh *ssh = active_state; /* XXX */
+
 	switch(event) {
 	case SSH_AUTH_SUCCESS:
 	case SSH_CONNECTION_CLOSE:
@@ -115,7 +117,7 @@ audit_event(ssh_audit_event_t event)
 	case SSH_AUTH_FAIL_GSSAPI:
 	case SSH_INVALID_USER:
 		linux_audit_record_event(-1, audit_username(), NULL,
-			get_remote_ipaddr(), "sshd", 0);
+		    ssh_remote_ipaddr(ssh), "sshd", 0);
 		break;
 
 	default:

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list