diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-06-02 03:12:44 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-06-02 03:34:36 -0400 |
commit | f3fb0b58c85666f73139963a7a04d7878f3d22c9 (patch) | |
tree | fbbc0f1ac6cf5df387581275d0eb026f7a3eb88b | |
parent | 79897d2097a629179e142014ecd3cdce6eac7f0e (diff) |
Bluetooth: Fix missing check for FIPS security level
When checking whether a legacy link key provides at least HIGH security
level we also need to check for FIPS level which is one step above HIGH.
This patch fixes a missing check in the hci_link_key_request_evt()
function.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: stable@vger.kernel.org
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 6cf9596ff69b..df7895e8fcc8 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -3077,7 +3077,8 @@ static void hci_link_key_request_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
3077 | } | 3077 | } |
3078 | 3078 | ||
3079 | if (key->type == HCI_LK_COMBINATION && key->pin_len < 16 && | 3079 | if (key->type == HCI_LK_COMBINATION && key->pin_len < 16 && |
3080 | conn->pending_sec_level == BT_SECURITY_HIGH) { | 3080 | (conn->pending_sec_level == BT_SECURITY_HIGH || |
3081 | conn->pending_sec_level == BT_SECURITY_FIPS)) { | ||
3081 | BT_DBG("%s ignoring key unauthenticated for high security", | 3082 | BT_DBG("%s ignoring key unauthenticated for high security", |
3082 | hdev->name); | 3083 | hdev->name); |
3083 | goto not_found; | 3084 | goto not_found; |