summaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-03 23:03:44 +0300
committerArnd Bergmann <arnd@arndb.de>2019-10-23 18:23:46 +0300
commit5f6beb9e0f633f3cc845cdd67973c506372931b4 (patch)
treef8bf54832b3e73b981a1f55646dad4953a712cde /net/socket.c
parent98aaaec4a150c39219a8aaa68c3adc6eed443ea8 (diff)
downloadlinux-5f6beb9e0f633f3cc845cdd67973c506372931b4.tar.xz
af_unix: add compat_ioctl support
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>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions