summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-06-05 15:30:55 +0200
committerDavid S. Miller <davem@davemloft.net>2013-06-10 22:23:32 -0700
commited13998c319b050fc9abdb73915859dfdbe1fb38 (patch)
tree347c9ba28d34f2ab94823f8d52c0d223e00c036f /include
parent92bb73ea2c434618a68a58a2f3a5c3fd0b660d18 (diff)
downloadlinux-ed13998c319b050fc9abdb73915859dfdbe1fb38.tar.gz
linux-ed13998c319b050fc9abdb73915859dfdbe1fb38.tar.bz2
linux-ed13998c319b050fc9abdb73915859dfdbe1fb38.zip
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')
-rw-r--r--include/linux/filter.h1
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);
extern int sk_detach_filter(struct sock *sk);
extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen);
extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len);
+extern void sk_decode_filter(struct sock_filter *filt, struct sock_filter *to);
#ifdef CONFIG_BPF_JIT
#include <stdarg.h>