summaryrefslogtreecommitdiffstats
path: root/kernel/auditfilter.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2013-07-16 13:18:45 -0400
committerEric Paris <eparis@redhat.com>2014-01-13 22:27:24 -0500
commit33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb (patch)
treefd6dd66d190aed6c01e974b9c07be163c10a5e65 /kernel/auditfilter.c
parent2f2ad1013322c8f6c40fc6dafdbd32442fa730ad (diff)
downloadlinux-stable-33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb.tar.gz
linux-stable-33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb.tar.bz2
linux-stable-33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb.zip
audit: listen in all network namespaces
Convert audit from only listening in init_net to use register_pernet_subsys() to dynamically manage the netlink socket list. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/auditfilter.c')
-rw-r--r--kernel/auditfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 08f7f7bef26c..d085cfbe416e 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -1050,6 +1050,7 @@ int audit_receive_filter(int type, __u32 portid, int seq, void *data,
if (!dest)
return -ENOMEM;
dest->portid = portid;
+ dest->pid = task_pid_vnr(current);
skb_queue_head_init(&dest->q);
mutex_lock(&audit_filter_mutex);