summaryrefslogtreecommitdiff
path: root/net/compat.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2016-06-04 00:49:17 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-07 01:21:04 +0300
commit1957598840f47d42bb0b7f8a871717a780708686 (patch)
treebd79d0ab81ceed7b11eed3b7ad31a10443dbfce0 /net/compat.c
parentfc100a7f89da85da8edd9c2e6f6e8b2490d74ae1 (diff)
downloadlinux-1957598840f47d42bb0b7f8a871717a780708686.tar.xz
soreuseport: add compat case for setsockopt SO_ATTACH_REUSEPORT_CBPF
Commit 538950a1b752 ("soreuseport: setsockopt SO_ATTACH_REUSEPORT_[CE]BPF") missed to add the compat case for the SO_ATTACH_REUSEPORT_CBPF option. Signed-off-by: Helge Deller <deller@gmx.de> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/compat.c')
-rw-r--r--net/compat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/compat.c b/net/compat.c
index 5cfd26a0006f..1373947efb50 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -354,7 +354,8 @@ static int do_set_sock_timeout(struct socket *sock, int level,
static int compat_sock_setsockopt(struct socket *sock, int level, int optname,
char __user *optval, unsigned int optlen)
{
- if (optname == SO_ATTACH_FILTER)
+ if (optname == SO_ATTACH_FILTER ||
+ optname == SO_ATTACH_REUSEPORT_CBPF)
return do_set_attach_filter(sock, level, optname,
optval, optlen);
if (optname == SO_RCVTIMEO || optname == SO_SNDTIMEO)