netdev
[Top] [All Lists]

Re: [PATCH] Add audit uid to netlink credentials

To: "Serge E. Hallyn" <serue@xxxxxxxxxx>
Subject: Re: [PATCH] Add audit uid to netlink credentials
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Tue, 8 Feb 2005 07:04:13 +0100 (CET)
Cc: netdev@xxxxxxxxxxx, davem@xxxxxxxxxxxxx, kuznet@xxxxxxxxxxxxx, linux-audit@xxxxxxxxxx
In-reply-to: <20050204165840.GA2320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20050204165840.GA2320@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Fri, 4 Feb 2005, Serge E. Hallyn wrote:
Most audit control messages are sent over netlink.  In order to properly
log the identity of the sender of audit control messages, we would like
to add the loginuid to the netlink_creds structure, as per the attached
patch.

Reception of netlink messages in the kernel happens in the context
of the sending process, so you can simply call
audit_get_loginuid(current->audit_context) in audit_receive_msg().

Regards
Patrick

<Prev in Thread] Current Thread [Next in Thread>