]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_bpf: add mising opaque struct sk_filter definition
authorPablo Neira <pablo@netfilter.org>
Tue, 29 Jul 2014 16:12:15 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 02:56:27 +0000 (19:56 -0700)
commit9fbe50a91301857548a00c45219c2fb9108b9518
tree2ba5f100c541f4514db640189056a1c428891bcf
parentde9f20751abedc2a8bef389605720afd67f867b8
netfilter: xt_bpf: add mising opaque struct sk_filter definition

This structure is not exposed to userspace, so fix this by defining
struct sk_filter; so we skip the casting in kernelspace. This is safe
since userspace has no way to lurk with that internal pointer.

Fixes: 2e3ed02 ("netfilter: x_tables: add xt_bpf match")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/netfilter/xt_bpf.h