iptables: use match, target and data copy_to_user helpers
authorWillem de Bruijn <willemb@google.com>
Mon, 2 Jan 2017 22:19:41 +0000 (17:19 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Jan 2017 16:24:53 +0000 (17:24 +0100)
commitf77bc5b23fb1af51fc0faa8a479dea8969eb5079
treebe0bea6d3aa34fb6d265a8e8eead1a7deb87622a
parentf32815d21d4d8287336fb9cef4d2d9e0866214c2
iptables: use match, target and data copy_to_user helpers

Convert iptables to copying entries, matches and targets one by one,
using the xt_match_to_user and xt_target_to_user helper functions.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/ip_tables.c