zephyr/samples
Luiz Augusto von Dentz 03b9ce487c Bluetooth: GATT: Add support to setting permission on CCCD
This adds support to set different permissions to CCCD so security can
be checked when enabling notification which conforms to:

BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part G page 2360:

  '3.3.3.3 Client Characteristic Configuration

   Authentication and authorization may be required by the server to
   write the configuration descriptor.'

In addition to that also ensure that notification are not re-enabled
until the proper security level is reached to conform to the following
statement:

  '10.3.1.1 Handling of GATT indications and notifications

   A client “requests” a server to send indications and notifications
   by appropriately configuring the server via a Client Characteristic
   Configuration Descriptor. Since the configuration is persistent
   across a disconnection and reconnection, security requirements must
   be checked against the configuration upon a reconnection before
   sending indications or notifications. When a server reconnects to a
   client to send an indication or notification for which security is
   required, the server shall initiate or request encryption with the
   client prior to sending an indication or notification. If the client
   does not have an LTK indicating that the client has lost the bond,
   enabling encryption will fail.'

Fixes #17983

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2019-09-19 21:12:39 +03:00
..
application_development native: removed redundant compiler args MMD & MP 2019-09-17 11:27:19 +02:00
basic samples: fix signed overflow in blinky example 2019-09-19 09:31:41 -05:00
bluetooth Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
boards Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
cpp_synchronization cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
display boards: reel_board: add support for reel board v2 2019-09-18 22:30:15 -04:00
drivers samples: drivers: ps2: Add PS/2 driver sample app 2019-09-18 13:23:52 +08:00
gui arc: hsdk: add lvgl support for hsdk board 2019-09-17 20:40:38 +08:00
hello_world doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
mpu
net samples: sockets: Fix syntax of combined "filter" clauses in sample.yaml 2019-09-19 00:29:41 -04:00
nfc/nfc_hello
philosophers doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
portability arch/x86: tests/cmsis: disable some CMSIS tests in 64-bit mode 2019-09-15 11:33:47 +08:00
sensor samples: amg88xx: update README.rst 2019-09-17 06:27:21 -05:00
shields dts/bindings: sensors: remove '-magn' extension from lis2mdl name 2019-09-12 07:58:34 -05:00
subsys samples: ipc: openamp: Add testing harness 2019-09-18 20:20:07 -04:00
synchronization arch/x86: disable inapplicable tests for Intel64 2019-09-15 11:33:47 +08:00
testing/integration
userspace tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00
xtensa_asm2 cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
classic.rst
index.rst