]> git.baikalelectronics.ru Git - kernel.git/commit
get rid of compat_mc_getsockopt()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Mar 2020 02:08:59 +0000 (22:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 May 2020 00:31:27 +0000 (20:31 -0400)
commit09964ef7863cc91b27aea318f09808c7680b14ab
tree7690c0c6a8fb539ca0462408935d8beba1cf8417
parentffeee96615ea702baeee6fb8b97b383bc85e4e5e
get rid of compat_mc_getsockopt()

now we can do MCAST_MSFILTER in compat ->getsockopt() without
playing silly buggers with copying things back and forth.
We can form a native struct group_filter (sans the variable-length
tail) on stack, pass that + pointer to the tail of original request
to the helper doing the bulk of the work, then do the rest of
copyout - same as the native getsockopt() does.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/net/compat.h
net/compat.c
net/ipv4/ip_sockglue.c
net/ipv6/ipv6_sockglue.c