aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-06-24 09:14:05 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-06-24 09:14:05 -0400
commit5bb289b5a0becb53ac3e1d60815ff8b779296b73 (patch)
tree0db75422d66eec857e0c05cd4cf4d014e7c0e264 /kernel/audit.c
parent993e2d4106e94dae6e8cfbeb32073bd12cdee203 (diff)
AUDIT: Clean up user message filtering
Don't look up the task by its pid and then use the syscall filtering helper. Just implement our own filter helper which operates solely on the information in the netlink_skb_parms. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 9af947a63ed1..6f1784dd80af 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -434,7 +434,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
434 if (!audit_enabled && msg_type != AUDIT_USER_AVC) 434 if (!audit_enabled && msg_type != AUDIT_USER_AVC)
435 return 0; 435 return 0;
436 436
437 err = audit_filter_user(pid, msg_type); 437 err = audit_filter_user(&NETLINK_CB(skb), msg_type);
438 if (err == 1) { 438 if (err == 1) {
439 err = 0; 439 err = 0;
440 ab = audit_log_start(NULL, GFP_KERNEL, msg_type); 440 ab = audit_log_start(NULL, GFP_KERNEL, msg_type);