FROMGIT: Bluetooth: Always request for user confirmation for Just Works

To improve security, always give the user-space daemon a chance to
accept or reject a Just Works pairing (LE). The daemon may decide to
auto-accept based on the user's intent.

Signed-off-by: Sonny Sasaka <sonnysasaka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
(cherry picked from commit d7a448d5da889446d87d64e6b6f361cec759b6af
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master)

BUG=b:152512408,chromium:1002611
TEST=With bluetoothctl and an LE Mouse:
     [bluetooth]# connect XX:XX:XX:XX:XX:XX
     Expect that the auto-pairing triggers user confirmation
     [bluetooth]# pair XX:XX:XX:XX:XX:XX
     Expect that the pairing doesn't trigger user confirmation

Change-Id: I0cda36d36929fe884ba17e9ce6df93de5db1ae3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2131127
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Commit-Queue: Sonny Sasaka <sonnysasaka@chromium.org>
Tested-by: Sonny Sasaka <sonnysasaka@chromium.org>
1 file changed