summaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-03 23:03:44 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-17 21:45:49 +0300
commit6b24f8fa8f265948c2e256d7f30315854fe8735e (patch)
treee6432b3c6943d144eae43657d1ab6d57888f9fbc /net/socket.c
parentd76a73388658d34ffa22a040d47be6e35f7b70ff (diff)
downloadlinux-6b24f8fa8f265948c2e256d7f30315854fe8735e.tar.xz
af_unix: add compat_ioctl support
commit 5f6beb9e0f633f3cc845cdd67973c506372931b4 upstream. The af_unix protocol family has a custom ioctl command (inexplicibly based on SIOCPROTOPRIVATE), but never had a compat_ioctl handler for 32-bit applications. Since all commands are compatible here, add a trivial wrapper that performs the compat_ptr() conversion for SIOCOUTQ/SIOCINQ. SIOCUNIXFILE does not use the argument, but it doesn't hurt to also use compat_ptr() here. Fixes: ba94f3088b79 ("unix: add ioctl to open a unix socket file with O_PATH") Cc: netdev@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions