diff options
author | Ed Maste <emaste@FreeBSD.org> | 2025-10-06 12:29:14 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2025-10-06 12:29:14 +0000 |
commit | 6409980cbba7323bd1c86249ed16f8bea9fa5490 (patch) | |
tree | 3710eb5988e5c6b0dd82c46413e96bba7cd18544 /audit-linux.c | |
parent | 9792a032f0a99557271d6b7f7b0a955386c1fdbe (diff) |
Diffstat (limited to 'audit-linux.c')
-rw-r--r-- | audit-linux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audit-linux.c b/audit-linux.c index 3fcbe5c53ef9..954eabe27807 100644 --- a/audit-linux.c +++ b/audit-linux.c @@ -51,6 +51,8 @@ linux_audit_record_event(int uid, const char *username, const char *hostname, else return 0; /* Must prevent login */ } + if (hostname != NULL && strcmp(hostname, "UNKNOWN") == 0) + hostname = NULL; rc = audit_log_acct_message(audit_fd, AUDIT_USER_LOGIN, NULL, "login", username ? username : "(unknown)", username == NULL ? uid : -1, hostname, ip, ttyn, success); @@ -117,7 +119,7 @@ audit_event(struct ssh *ssh, ssh_audit_event_t event) ssh_remote_ipaddr(ssh), "sshd", 0); break; default: - debug("%s: unhandled event %d", __func__, event); + debug_f("unhandled event %d", event); break; } } |