Skip to content
Commit 48095d99 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 38dbfb59
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment