diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-06-03 22:03:44 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-10-23 17:23:46 +0200 |
commit | 5f6beb9e0f633f3cc845cdd67973c506372931b4 (patch) | |
tree | f8bf54832b3e73b981a1f55646dad4953a712cde /net/sctp/output.c | |
parent | compat_ioctl: reimplement SG_IO handling (diff) | |
download | linux-5f6beb9e0f633f3cc845cdd67973c506372931b4.tar.xz linux-5f6beb9e0f633f3cc845cdd67973c506372931b4.zip |
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/sctp/output.c')
0 files changed, 0 insertions, 0 deletions