shared/gatt-db: Fix declaration attributes permission 02/204902/1
authorKonstantin Zhukov <zhukov@mercurydevelopment.com>
Mon, 12 Feb 2018 10:40:30 +0000 (14:40 +0400)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:27:15 +0000 (08:57 +0530)
commita52c80d2450226e1f63589f6b6f2c5451b0b55f8
tree62e52ed4e8a7491b1ae77d6574bf9f39f3861b46
parente83494230b3f5e9e52e48eec5f86c4e285b969b3
shared/gatt-db: Fix declaration attributes permission

According to Bluetooth Core specification v4.2 (Vol. 3, part G,
section 3.1), service declararion attributes should have only READ
permission. The same obligation has charateristic declaration and
include service declaration attributes.

Without this permission connected clients could corrupt GATT database
by writing to declaration attributes. After thatm service discovery
fails in other clients.

Change-Id: Ib18c4de213e9c242a09a770d9f24cd850a1af6a0
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
src/shared/gatt-db.c