Add API to get privilege type 21/106321/12
authorYunjin Lee <yunjin-.lee@samsung.com>
Wed, 21 Dec 2016 09:17:23 +0000 (18:17 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Wed, 11 Jan 2017 07:19:19 +0000 (16:19 +0900)
commitbfb51ba3b8c721d24d25db4c75df99dfa7fbc897
treefb47f5d74f1c8c8a2071a788b56658f9bd943757
parent87702d790ed738d911971c693e62ba69ef304384
Add API to get privilege type

- Add API to get privilege type.
It determines privilege type according to the given uid and package id
on the basis of ask policy white list per privacy and mdm black list.
- Add table for privacy white list.
It stores whitelist for ask policy and whether the privacy is user-settable or not.
Possible privacy option format is "*-{privacyA}-{privacyB}.." or "{privacyA}+{privacyB}+...".
If pkg should not be seen in privacy setting menu then set 'settable' flag to 0.
If 'settable' flag is set to 1 for the privacy or not exist for the privacy then then pkg privacy option is user-settable for that privacy.

Change-Id: I720e9f5abcf02c89b3a09238d5fbafe26bf8e044
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
17 files changed:
CMakeLists.txt
capi/CMakeLists.txt
capi/include/privilege_db_manager.h
capi/include/privilege_info.h
capi/include/privilege_info_types.h
capi/include/privilege_manager.h
capi/res/dbspace/core_db_generator.sh
capi/res/dbspace/mobile_privacy_whitelist.csv [new file with mode: 0644]
capi/res/dbspace/policy_db_generator.sh
capi/res/dbspace/privacylist.csv [new file with mode: 0644]
capi/res/dbspace/tv_core_db_generator.sh
capi/res/dbspace/wearable_privacy_whitelist.csv [new file with mode: 0644]
capi/src/privilege_db_manager.c
capi/src/privilege_info.c
capi/src/privilege_manager.c
test/tc-privilege-db-manager.c
test/tc-privilege-info.c