plugins/admin: add ServiceAllowList property
authorYun-Hao Chung <howardchung@chromium.org>
Tue, 3 Aug 2021 11:43:12 +0000 (19:43 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:36 +0000 (19:08 +0530)
commit2bc403e395d255fb6f13dbe50ba467360844465e
tree8e0382239acb26fcd17d4645a6dadadb5408ea8a
parent76ac01852619705a5a77532e54bc3168182bb8c5
plugins/admin: add ServiceAllowList property

This adds code to register interface org.bluez.AdminPolicyStatus.
The interface will provide read-only properties to indicate the current
settings of admin policies. We separate this from AdminPolicySet so that
normal clients can check current policy settings while only a few
clients can change policies.

This patch also adds readonly property ServiceAllowlist to
AdminPolicyStatus1, which indicates the current setting of service
allowlist.

Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
plugins/admin.c