Bluetooth: Add support for trust verification of management commands
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 15 Mar 2015 02:28:03 +0000 (19:28 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 15 Mar 2015 07:58:56 +0000 (09:58 +0200)
commitc927a10487477eeed0441e5c88147700e69e5db9
tree3b5b4cf14ad95ef992e08930105ec707619050bc
parent7aea8616cd26d138b0696ba5605751fb21ee970f
Bluetooth: Add support for trust verification of management commands

Check the required trust level of each management command with the trust
level of the management socket. If it does not match up, then return the
newly introduced permission denied error.

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