]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/bluetooth/hci_sock.c
Bluetooth: Return EOPNOTSUPP for HCISETRAW ioctl command
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Apr 2014 03:04:38 +0000 (20:04 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 24 Apr 2014 14:55:25 +0000 (11:55 -0300)
commitdb5966816cd83b8daa1aee38cb1374794f1d8b8e
treee7f7ac208228581d32a75de7e4a8e2eb030bf91a
parentb16c6604885841e1b7d2eb09a3256bf6d3d4bc8a
Bluetooth: Return EOPNOTSUPP for HCISETRAW ioctl command

The HCISETRAW ioctl command is not really useful. To utilize raw and
direct access to the HCI controller, the HCI User Channel feature has
been introduced. Return EOPNOTSUPP to indicate missing support for
this command.

For legacy reasons hcidump used to use HCISETRAW for permission check
to return proper error codes to users. To keep backwards compability
return EPERM in case the caller does not have CAP_NET_ADMIN capability.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_sock.c