]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
netfilter: x_tables: introduce and use xt_copy_counters_from_user
authorFlorian Westphal <fw@strlen.de>
Thu, 23 Jun 2016 18:32:32 +0000 (19:32 +0100)
committerBrad Figg <brad.figg@canonical.com>
Fri, 24 Jun 2016 01:20:38 +0000 (18:20 -0700)
commitee32114e28b7fc93b74a1a5ecb5b5510eda26fe6
tree10b3e5ec4b386146621120fa19064d7b65894b6b
parentb85f67dffad48dc3fdbdfe5b97a64b87268f9fdb
netfilter: x_tables: introduce and use xt_copy_counters_from_user

The three variants use same copy&pasted code, condense this into a
helper and use that.

Make sure info.name is 0-terminated.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
(cherry picked from commit d7591f0c41ce3e67600a982bab6989ef0f07b3ce)
BugLink: https://bugs.launchpad.net/bugs/1595350
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Brad Figg <brad.figg@canonical.com>
include/linux/netfilter/x_tables.h
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c
net/netfilter/x_tables.c