OSDN Git Service

audit: Send replies in the proper network namespace.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 1 Mar 2014 04:36:55 +0000 (20:36 -0800)
committerEric Paris <eparis@redhat.com>
Thu, 20 Mar 2014 14:11:02 +0000 (10:11 -0400)
commit099dd235113700bbb476e572cd191ddb77b9af46
tree7f8137af9685dbe6c2ddbd686feaf13808ab7d2c
parent638a0fd2a062568c568661be0a780be8e8836d03
audit: Send replies in the proper network namespace.

In perverse cases of file descriptor passing the current network
namespace of a process and the network namespace of a socket used by
that socket may differ.  Therefore use the network namespace of the
appropiate socket to ensure replies always go to the appropiate
socket.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/audit.h
kernel/audit.c
kernel/auditfilter.c