public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Ludovico de Nittis <ludovico.denittis@collabora.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ v4 0/6] Support Sixaxis gamepad with classic bonded only
Date: Thu, 24 Apr 2025 18:32:05 +0200	[thread overview]
Message-ID: <b3a66041-dce3-45db-8410-c67223151ce7@collabora.com> (raw)
In-Reply-To: <CABBYNZKFmW8a3MggGHp23d5SYotGQKDZBzn4Q2EB-xUToAUhDQ@mail.gmail.com>

Hi Luiz,

On 4/24/25 6:18 PM, Luiz Augusto von Dentz wrote:
> Hi Ludovico,
>
> On Thu, Apr 24, 2025 at 12:03 PM Ludovico de Nittis
> <ludovico.denittis@collabora.com> wrote:
>> This series adds a new "CablePairing" property to allow us to
>> indentify devices that have been paired using a custom USB cable
>> cable method and that don't support the canonical bonding with
>> encryption. With that information, we can dynamically enforce
>> encryption to drastically reduce the attack surface, compared to just
>> disabling the "ClassicBondedOnly" property.
>>
>> The "CablePairing" property is exposed via D-Bus to allow
>> clients to potentually show this information to end users.
>>
>> As far as I can tell, starting the listening input server with
>> BT_IO_SEC_LOW and then bumping it in `hidp_add_connection()` should not
>> have any negative effect regarding the overall security. However,
>> please let me know if it turns out not being the case.
>>
>> Addresses https://github.com/bluez/bluez/issues/1165
>>
>> Changes in v2:
>>   - Start the listening input server with BT_IO_SEC_LOW only if we
>>     actually have a known sixaxis device
>>
>> Changes in v3:
>>    - Change the property from being sixaxis specific to a generic
>>      "CablePairing"
>>    - Remove the manual validation of Sixaxis HID report descriptor
>>      because we already replace it with a pre-dermined SDP record
>>      in `sixaxis.c`
>>
>> Changes in v4:
>>    - Instead of setting the server security level in adapter.c, we
>>      do it when registering the input devices, during probing
>>
>> Ludovico de Nittis (6):
>>    src: Add new CablePairing property
>>    client: Print CablePairing property
>>    sixaxis: Set CablePairing when pairing a Sixaxis with USB
>>    adapter: Add btd_adapter_has_cable_pairing_devices()
>>    input: Automatically use sec level low when using a cable paired
>>      device
>>    sixaxis: Set security level when adding a sixaxis device
>>
>>   client/main.c            |  1 +
>>   doc/org.bluez.Device.rst |  7 +++++
>>   plugins/sixaxis.c        |  8 ++++-
>>   profiles/input/device.c  | 20 +++++++++++--
>>   profiles/input/manager.c |  3 +-
>>   profiles/input/server.c  | 63 ++++++++++++++++++++++++++++++++++++++--
>>   profiles/input/server.h  |  3 +-
>>   src/adapter.c            | 17 +++++++++++
>>   src/adapter.h            |  1 +
>>   src/device.c             | 40 +++++++++++++++++++++++++
>>   src/device.h             |  2 ++
>>   11 files changed, 157 insertions(+), 8 deletions(-)
>>
>> --
>> 2.49.0
>>
> Looks like CI has found something not quite right still:
>
> https://github.com/bluez/bluez/pull/1191#issuecomment-2828175923
>

Oops, it should be fixed in the v5.


      reply	other threads:[~2025-04-24 16:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-24 16:02 [PATCH BlueZ v4 0/6] Support Sixaxis gamepad with classic bonded only Ludovico de Nittis
2025-04-24 16:02 ` [PATCH BlueZ v4 1/6] src: Add new CablePairing property Ludovico de Nittis
2025-04-24 17:17   ` Support Sixaxis gamepad with classic bonded only bluez.test.bot
2025-04-24 16:02 ` [PATCH BlueZ v4 2/6] client: Print CablePairing property Ludovico de Nittis
2025-04-24 16:02 ` [PATCH BlueZ v4 3/6] sixaxis: Set CablePairing when pairing a Sixaxis with USB Ludovico de Nittis
2025-04-24 16:02 ` [PATCH BlueZ v4 4/6] adapter: Add btd_adapter_has_cable_pairing_devices() Ludovico de Nittis
2025-04-24 16:02 ` [PATCH BlueZ v4 5/6] input: Automatically use sec level low when using a cable paired device Ludovico de Nittis
2025-04-24 16:02 ` [PATCH BlueZ v4 6/6] sixaxis: Set security level when adding a sixaxis device Ludovico de Nittis
2025-04-24 16:18 ` [PATCH BlueZ v4 0/6] Support Sixaxis gamepad with classic bonded only Luiz Augusto von Dentz
2025-04-24 16:32   ` Ludovico de Nittis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b3a66041-dce3-45db-8410-c67223151ce7@collabora.com \
    --to=ludovico.denittis@collabora.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox