Skip to content

mgmt/device: report link security level to D-Bus clients

Frédéric Danis linux-bluetooth 5 versions – Applied

Status from this message: This series was applied to bluetooth/bluez.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 1 replyApplied
  2. v3 posting 2/26 patches 1 replySuperseded
  3. v3 posting 1/26 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v26 patches1 replySuperseded
v16 patches1 replySuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6mgmt: Add Security Level Changed eventdoc/mgmt-protocol.rst lib/bluetooth/mgmt.h+60 -01 reply
2/6mgmt-tester: Add Security Level Changed event teststools/mgmt-tester.c+138 -00 replies
3/6monitor: Add support for Mgmt Security Level changed eventmonitor/packet.c+123 -00 replies
4/6device: Add SecurityLevel properties to org.bluez.Device1src/adapter.c src/device.c src/device.h+120 -00 replies
5/6org.bluez.Device: Add Security Level related propertiesdoc/org.bluez.Device.rst+36 -00 replies
6/6client: Display SecurityLevel in device infoclient/main.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH BlueZ v4 0/6] mgmt/device: report link security level to D-Bus clients

This series adds connection security-level reporting.
The new MGMT_EV_SECURITY_LEVEL_CHANGED event [1] is documented and org.bluez.Device1 is updates with new experimental read-only properties SecurityLevel and EncryptionType.
Those properties can be displayed using "bluetoothctl info".

This is intended to let clients (including test tooling such as btpclient) observe effective link security changes.

[1] https://lore.kernel.org/all/[email protected]/

v1->v2: Fix struct mgmt_ev_security_level_changed definition v2->v3: Re-work Security Level possible values in mgmt-protocol.rst to be in
with other *-protocol.rst files
v3->v4: Following changes in kernel patch, replace tlv_count by tlv_length

Frédéric Danis (6):
mgmt: Add Security Level Changed event
mgmt-tester: Add Security Level Changed event tests
monitor: Add support for Mgmt Security Level changed event
device: Add SecurityLevel properties to org.bluez.Device1 org.bluez.Device: Add Security Level related properties
client: Display SecurityLevel in device info

 client/main.c            |   2 +
 doc/mgmt-protocol.rst    |  45 +++++++++++++
 doc/org.bluez.Device.rst |  36 ++++++++++
 lib/bluetooth/mgmt.h     |  15 +++++
 monitor/packet.c         | 123 ++++++++++++++++++++++++++++++++++
 src/adapter.c            |  33 ++++++++++
 src/device.c             |  84 ++++++++++++++++++++++++
 src/device.h             |   3 +
 tools/mgmt-tester.c      | 138 +++++++++++++++++++++++++++++++++++++++
 9 files changed, 479 insertions(+)
Signature · 1 line
2.43.0