aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-10-10 13:03:12 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-10-10 16:41:17 -0700
commit25a471a83e02e1effb15d5a488b3f0085eaeb675 (patch)
tree213e286617b2b05fa0a22e54273362aa7455ac13
parent3a9c637010f8dc1ba3e8382abe01065761d4f5bb (diff)
input.conf: Change default of ClassicBondedOnly
This changes the default of ClassicBondedOnly since defaulting to false is not inline with HID specification which mandates the of Security Mode 4: BLUETOOTH SPECIFICATION Page 84 of 123 Human Interface Device (HID) Profile: 5.4.3.4.2 Security Modes Bluetooth HID Hosts shall use Security Mode 4 when interoperating with Bluetooth HID devices that are compliant to the Bluetooth Core Specification v2.1+EDR[6].
-rw-r--r--profiles/input/device.c2
-rw-r--r--profiles/input/input.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/profiles/input/device.c b/profiles/input/device.c
index 4a50ea9921..4310dd192e 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -81,7 +81,7 @@ struct input_device {
static int idle_timeout = 0;
static bool uhid_enabled = false;
-static bool classic_bonded_only = false;
+static bool classic_bonded_only = true;
void input_set_idle_timeout(int timeout)
{
diff --git a/profiles/input/input.conf b/profiles/input/input.conf
index 4c70bc561f..d8645f3dd6 100644
--- a/profiles/input/input.conf
+++ b/profiles/input/input.conf
@@ -17,7 +17,7 @@
# platforms may want to make sure that input connections only come from bonded
# device connections. Several older mice have been known for not supporting
# pairing/encryption.
-# Defaults to false to maximize device compatibility.
+# Defaults to true for security.
#ClassicBondedOnly=true
# LE upgrade security