Skip to content

Commit

Permalink
soreuseport: add compat case for setsockopt SO_ATTACH_REUSEPORT_CBPF
Browse files Browse the repository at this point in the history
Commit 538950a ("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>
  • Loading branch information
Helge Deller authored and David S. Miller committed Jun 6, 2016
1 parent fc100a7 commit 1957598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1957598

Please sign in to comment.