diff options
| author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-06-05 09:30:55 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-06-11 01:23:32 -0400 |
| commit | ed13998c319b050fc9abdb73915859dfdbe1fb38 (patch) | |
| tree | 347c9ba28d34f2ab94823f8d52c0d223e00c036f /include/linux | |
| parent | 92bb73ea2c434618a68a58a2f3a5c3fd0b660d18 (diff) | |
sock_diag: fix filter code sent to userspace
Filters need to be translated to real BPF code for userland, like SO_GETFILTER.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/filter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index c050dcc322a4..f65f5a69db8f 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
| @@ -46,6 +46,7 @@ extern int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); | |||
| 46 | extern int sk_detach_filter(struct sock *sk); | 46 | extern int sk_detach_filter(struct sock *sk); |
| 47 | extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen); | 47 | extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen); |
| 48 | extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len); | 48 | extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len); |
| 49 | extern void sk_decode_filter(struct sock_filter *filt, struct sock_filter *to); | ||
| 49 | 50 | ||
| 50 | #ifdef CONFIG_BPF_JIT | 51 | #ifdef CONFIG_BPF_JIT |
| 51 | #include <stdarg.h> | 52 | #include <stdarg.h> |
