linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC BlueZ 0/2] Use composition data to validate app against the node
@ 2019-07-17 19:53 Michał Lowas-Rzechonek
  2019-07-17 19:53 ` [RFC BlueZ 1/2] mesh: Keep model list sorted and unique Michał Lowas-Rzechonek
  2019-07-17 19:53 ` [RFC BlueZ 2/2] mesh: Validate application by comparing composition data Michał Lowas-Rzechonek
  0 siblings, 2 replies; 3+ messages in thread
From: Michał Lowas-Rzechonek @ 2019-07-17 19:53 UTC (permalink / raw)
  To: linux-bluetooth

This patchset streamlines app validation by creating a temporary node
during Join, CreateNetwork and ImportLocalNode calls and then
comparing temporary composition data with one generated for already
existing node.

In case of Attach call, the temporary node is simply added to the list.

TODO: Composition data generation needs to validate node structure,
checking that:
 - primary element exists
 - mandatory models are where they should be
 - there are no gaps in element indexes
 - ... possibly a few more things

Michał Lowas-Rzechonek (2):
  mesh: Keep model list sorted and unique
  mesh: Validate application by comparing composition data

 mesh/cfgmod-server.c |  14 +-
 mesh/mesh-defs.h     |   2 +
 mesh/node.c          | 453 ++++++++++++++++++-------------------------
 3 files changed, 198 insertions(+), 271 deletions(-)

-- 
2.22.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-17 19:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-17 19:53 [RFC BlueZ 0/2] Use composition data to validate app against the node Michał Lowas-Rzechonek
2019-07-17 19:53 ` [RFC BlueZ 1/2] mesh: Keep model list sorted and unique Michał Lowas-Rzechonek
2019-07-17 19:53 ` [RFC BlueZ 2/2] mesh: Validate application by comparing composition data Michał Lowas-Rzechonek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).