All of lore.kernel.org
 help / color / mirror / Atom feed
* Clarification on Characteristic Flags
@ 2018-02-27 17:01 Nathaniel McCallum
  2018-02-28  8:04 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Nathaniel McCallum @ 2018-02-27 17:01 UTC (permalink / raw)
  To: linux-bluetooth

The documentation in doc/gatt-api.txt specifies a number of flags that
control the security of the operations.[0] These flags contain no
documentation besides a reference to the Core Bluetooth Specification.

Unfortunately, the Core Specification has now changed and the
references no longer apply to the most recent documents. Further, even
if the references were correct, the documentation is also rather
opaque and presumes a lot of knowledge about Bluetooth to understand
the actual properties. An application developer cannot be presumed to
have this knowledge.

Additionally, some of the flags (I think secure-read and secure-write)
don't appear to have any corollary in the specification. Nor is it
clear what behavior they actually implement.

The combination of unclear documentation and critical security
properties is compounded by the unclear relationship between the
flags. For example, how should the following three flags be used
together: write, authenticated-signed-writes,
encrypt-authenticated-write? Does this mean that the unsigned writes,
signed writes and signed-and-encrypted writes are allowed and any one
of them may be chosen (leading to potential disclosure of sensitive
information)? Or does it mean that writes are allowed if they are
signed and encrypted?

Would it be possible to get some clear documentation on not only how
to use these flags but what security properties emerge from their use
in various combinations? I would hate for security issues to arise
because developers are using this API incorrectly. Thanks!

[0]: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/gatt-api.txt#n227

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

end of thread, other threads:[~2018-02-28 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 17:01 Clarification on Characteristic Flags Nathaniel McCallum
2018-02-28  8:04 ` Luiz Augusto von Dentz
2018-02-28 15:39   ` Nathaniel McCallum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.