]> git.baikalelectronics.ru Git - kernel.git/commit
ebtables: use match, target and data copy_to_user helpers
authorWillem de Bruijn <willemb@google.com>
Mon, 2 Jan 2017 22:19:44 +0000 (17:19 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Jan 2017 16:24:54 +0000 (17:24 +0100)
commitf24c93ab45304b3c31058421a50002a9b8d4754c
treeefe41007d93a0e2a98b36dee97918628d7a8c434
parent96eaa04946e750dbd9520391c2e70cdb507f3b64
ebtables: use match, target and data copy_to_user helpers

Convert ebtables to copying entries, matches and targets one by one.

The solution is analogous to that of generic xt_(match|target)_to_user
helpers, but is applied to different structs.

Convert existing helpers ebt_make_XXXname helpers that overwrite
fields of an already copy_to_user'd struct with ebt_XXX_to_user
helpers that copy all relevant fields of the struct from scratch.

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