]> git.baikalelectronics.ru Git - kernel.git/commit
audit: Use struct net not pid_t to remember the network namespce to reply in
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 4 Feb 2014 01:25:33 +0000 (17:25 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 28 Feb 2014 12:04:33 +0000 (04:04 -0800)
commit71234f8aa47761136ea9cfedb580c814a0ea644a
treef26908756c405000b301410ab2294ad7d69ca300
parented4c0e42e851d5178cd0d1dc05de408325576e1c
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>
kernel/audit.c
kernel/audit.h
kernel/auditfilter.c