xtables: use match, target and data copy_to_user helpers in compat
authorWillem de Bruijn <willemb@google.com>
Mon, 2 Jan 2017 22:19:45 +0000 (17:19 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Jan 2017 16:24:55 +0000 (17:24 +0100)
commit4915f7bbc402071539ec0cb8c75aad878c982402
treef7a39d9e303aa40e3e5429e9b7d8a1a46b51deae
parentb5040f6c33a51e6e1fddab75baf0f45d4943cde4
xtables: use match, target and data copy_to_user helpers in compat

Convert compat 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/netfilter/x_tables.c