Skip to content

mesh: Fix Remote/Local dev key usage

Brian Gix linux-bluetooth 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesIn review
  2. v23 patches 0 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mesh: Add remote boolean to DevKey transactionsdoc/mesh-api.txt+14 -30 replies
2/3mesh: Explicit Remote/Local Device key usagemesh/model.c mesh/node.c+22 -141 reply
3/3mesh: Fix Key Ring permissions for local nodesmesh/manager.c mesh/node.c+0 -203 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH BlueZ v3 0/3] mesh: Fix Remote/Local dev key usage

V3: By popular demand, the name "remote" is now used for both DevKeySend() and DevKeyMessageReceived().

In DevKeySend(), setting remote == true means that the Key Ring *must* be used to encrypt the outgoing message, and a failure will be returned if the requested destination address does not include a device key in the local key ring. For remote == false requests, the request will be rejected if the destination is an element on the local node.

In DevKeyMessageReceived(), the remote boolean will be set == true if it required the key ring to decrypot the message. If remote == false, this means that the local nodes Device Key successfully decrypted the message, and the message may be used to change or query privileged states.

Brian Gix (3):
mesh: Add local/remote bools to DevKey transactions
mesh: Use explicit Local vs Remote Device key usage
mesh: Fix Key Ring permissions for local nodes

 doc/mesh-api.txt | 17 ++++++++++++++---
 mesh/manager.c   |  5 -----
 mesh/model.c     | 11 +++++++----
 mesh/node.c      | 40 +++++++++++++++-------------------------
 4 files changed, 36 insertions(+), 37 deletions(-)
Signature · 1 line
2.21.0