audit_log_user_message question
In looking at the user application audit I'm wondering why there is a "hostname" field there?
I understand the obvious answer but would think I'd trust the auditd or audispd more than an application for the hostname answer, and those would be consistent.
Thx,
LCB.
Signature · 2 lines
LC (Lenny) Bruzenak [email protected]
Quoted 2 lines · LC Bruzenak
In looking at the user application audit I'm wondering why there is a "hostname" field there?
audit_log_user_message(int audit_fd, int type, const char *message, const char *hostname, const char *addr, const char *tty, int result)
I meant the above audit call.
LCB.
Signature · 2 lines
LC (Lenny) Bruzenak [email protected]
Quoted 2 lines · On Tuesday 27 May 2008 13:56:03 LC Bruzenak wrote:
In looking at the user application audit I'm wondering why there is a "hostname" field there?
So that apps like sshd can say where the user is coming from.
Quoted 3 lines
I understand the obvious answer but would think I'd trust the auditd or audispd more than an application for the hostname answer, and those would be consistent.
That's a different hostname. :)
The hostname field as used in audit_log_user_message would be a remote machine name and not the local address. Many apps do not need this field and should pass NULL if unused.
-Steve
Quoted 4 lines · Steve Grubb
Quoted 2 lines · On Tuesday 27 May 2008 13:56:03 LC Bruzenak wrote:
In looking at the user application audit I'm wondering why there is a "hostname" field there?
Quoted 8 lines
So that apps like sshd can say where the user is coming from.
Quoted 3 lines
I understand the obvious answer but would think I'd trust the auditd or audispd more than an application for the hostname answer, and those would be consistent.
That's a different hostname. :)
Right!
Sorry; I promise I'll get it one of these days.
Quoted 6 lines
The hostname field as used in
audit_log_user_messagewould be a remote machine name and not the local address. Many apps do not need this field and should pass NULL if unused.-Steve
Thanks again,
LCB.
Signature · 2 lines
LC (Lenny) Bruzenak [email protected]