Re: [PATCH v2] Bluetooth: Fix tracking local SSP authentication requirement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> When we need to make the decision whether to perform just-works or real
> user confirmation we need to know the exact local authentication
> requirement that was passed to the controller. So far conn->auth_type
> (the local requirement) wasn't in one case updated appropriately in fear
> of the user confirmation being rejected later.
> 
> The real problem however was not really that conn->auth_type couldn't
> represent the true value but that we were checking the local MITM
> requirement in an incorrect way. It's perfectly fine to let auth_type
> follow what we tell the controller since we're still tracking the target
> security level with conn->pending_sec_level.
> 
> This patch updates the check for local MITM requirement in the
> hci_user_confirm_request_evt function to use the locally requested
> security level and ensures that auth_type always represents what we tell
> the controller. All other code in hci_user_confirm_request_evt still
> uses the auth_type instead of pending_sec_level for determining whether
> to do just-works or not, since that's the only value that's in sync with
> what the remote device knows.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> net/bluetooth/hci_event.c | 17 ++++++++---------
> 1 file changed, 8 insertions(+), 9 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux