deliverable/linux.git
19 years agonetlink audit warning fix
Andrew Morton [Sat, 30 Apr 2005 06:07:04 +0000 (07:07 +0100)] 
netlink audit warning fix

scumbags!

net/netlink/af_netlink.c: In function `netlink_sendmsg':
net/netlink/af_netlink.c:908: warning: implicit declaration of function `audit_get_loginuid'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
19 years ago[AUDIT] LOGIN message credentials
Steve Grubb [Fri, 29 Apr 2005 16:30:07 +0000 (17:30 +0100)] 
[AUDIT] LOGIN message credentials

Attached is a new patch that solves the issue of getting valid credentials
into the LOGIN message. The current code was assuming that the audit context
had already been copied. This is not always the case for LOGIN messages.

To solve the problem, the patch passes the task struct to the function that
emits the message where it can get valid credentials.

Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
19 years ago[AUDIT] Requeue messages at head of queue, up to audit_backlog
Chris Wright [Fri, 29 Apr 2005 16:19:14 +0000 (17:19 +0100)] 
[AUDIT] Requeue messages at head of queue, up to audit_backlog

If netlink_unicast() fails, requeue the skb back at the head of the queue
it just came from, instead of the tail. And do so unless we've exceeded
the audit_backlog limit; not according to some other arbitrary limit.

From: Chris Wright <chrisw@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
19 years agoAdd audit uid to netlink credentials
Serge Hallyn [Fri, 29 Apr 2005 15:27:17 +0000 (16:27 +0100)] 
Add audit uid to netlink credentials

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.

Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
19 years agoaudit: update pointer to userspace tools, remove emacs mode tags