]> 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)
commit104caf19b98eeaccc2cdf89e132fc3f90072ea49
tree619dc9cc51e255e340cfeae729a1fa3422352018
parent351c5d6a51f0f806a8a4bdf784b12afec27f61bc
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