]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Filter list of supported commands/events for untrusted users
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 25 Mar 2015 00:31:03 +0000 (17:31 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 25 Mar 2015 01:37:42 +0000 (18:37 -0700)
commitef0bf4f586094da525b1ed06d055f72d4e1abd66
tree619dc9cc51e255e340cfeae729a1fa3422352018
parent9e9af0c6e7bb4e13fd6fa6be369baf72781306d5
Bluetooth: Filter list of supported commands/events for untrusted users

When the user of the management interface is not trusted, then it only
has access to a limited set of commands and events. When providing the
list of supported commands and events take the trusted vs untrusted
status of the user into account and return different lists.

This way the untrusted user knows exactly which commands it can
execute and which events it can receive. So no guesswork needed.

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