Bluetooth: Restrict ioctls to HCI raw channel sockets
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 26 Aug 2013 16:39:55 +0000 (09:39 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 16 Sep 2013 17:35:55 +0000 (14:35 -0300)
commitc1c4f9567040c5677828142f52b55422886bd62c
tree10d24a5ffcadbe0aa3bf52f19ffff7fe3d446868
parentc2371e80b3d0d11df10579a39cdad3310c944325
Bluetooth: Restrict ioctls to HCI raw channel sockets

The various legacy ioctls used with HCI sockets are limited to raw
channel only. They are not used on the other channels and also have
no meaning there. So return an error if tried to use them.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_sock.c