-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
891 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
From 61522c4a6b3ccf667bd89925477ae866715f110e Mon Sep 17 00:00:00 2001 | ||
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | ||
Date: Tue, 10 Oct 2023 13:03:12 -0700 | ||
Subject: [PATCH] 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]. | ||
--- | ||
profiles/input/device.c | 2 +- | ||
profiles/input/input.conf | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/profiles/input/device.c b/profiles/input/device.c | ||
index 0138992..156f9f1 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 4c70bc5..d8645f3 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 | ||
-- | ||
2.38.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.