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)
commit99c679acce5d07aa1be63d8afe94df27f0aecb50
tree619dc9cc51e255e340cfeae729a1fa3422352018
parent912098a6308e37208b8dcc46c57c66d0778a854b
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