summary refs log tree commit diff
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-02-03 17:25:33 -0800
committerEric W. Biederman <ebiederm@xmission.com>2014-02-28 04:04:33 -0800
commit48095d991d85687569ac025b18a6c7ae1632c9f7 (patch)
treef26908756c405000b301410ab2294ad7d69ca300 /kernel/audit.h
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlinux-48095d991d85687569ac025b18a6c7ae1632c9f7.tar.gz
audit: Use struct net not pid_t to remember the network namespce to reply in
In struct audit_netlink_list and audit_reply add a reference to the
network namespace of the caller and remove the userspace pid of the
caller.  This cleanly remembers the callers network namespace, and
removes a huge class of races and nasty failure modes that can occur
when attempting to relook up the callers network namespace from a
pid_t (including the caller's network namespace changing, pid
wraparound, and the pid simply not being present).

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r--kernel/audit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.h b/kernel/audit.h
index 57cc64d67718..8df132214606 100644
--- a/kernel/audit.h
+++ b/kernel/audit.h
@@ -247,7 +247,7 @@ extern void		    audit_panic(const char *message);
 
 struct audit_netlink_list {
 	__u32 portid;
-	pid_t pid;
+	struct net *net;
 	struct sk_buff_head q;
 };