diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-07-16 19:18:45 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-01-14 04:27:24 +0100 |
commit | 33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb (patch) | |
tree | fd6dd66d190aed6c01e974b9c07be163c10a5e65 /kernel/auditfilter.c | |
parent | audit: restore order of tty and ses fields in log output (diff) | |
download | linux-33faba7fa7f2288d2f8aaea95958b2c97bf9ebfb.tar.xz linux-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.c | 1 |
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); |