BACKPORT: net/compat.c,linux/filter.h: share compat_sock_fprog
authorWill Drewry <wad@chromium.org>
Wed, 22 Feb 2012 16:59:31 +0000 (10:59 -0600)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:16:45 +0000 (15:16 -0700)
commit96dd170b7c3c51d9d9d6d95539b30a71d2783c75
tree76484ca31a95ce35b10bfc983b47f39b674f29e3
parent69c665704b9a4892f026a186c41865e14170e37b
BACKPORT: net/compat.c,linux/filter.h: share compat_sock_fprog

Any other users of bpf_*_filter that take a struct sock_fprog from
userspace will need to be able to also accept a compat_sock_fprog
if the arch supports compat calls.  This change allows the existing
compat_sock_fprog be shared.

Signed-off-by: Will Drewry <wad@chromium.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eric Paris <eparis@redhat.com>
Change-Id: I687cf3c371fdde619db076a46c13b69065e694d4
v18: tasered by the apostrophe police
v14: rebase/nochanges
v13: rebase on to 88ebdda6159ffc15699f204c33feb3e431bf9bdc
v12: rebase on to linux-next
v11: introduction

BUG=chromium-os:27878
TEST=none. Part of a much larger stack that really should merge together.

Change-Id: I8935e627c4152f28856c069e966fd236a74bcd92
Reviewed-on: https://gerrit.chromium.org/gerrit/21359
Reviewed-by: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
include/linux/filter.h
net/compat.c