Support permission check 56/209056/19
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Jul 2019 04:46:10 +0000 (13:46 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 9 Jul 2019 23:08:24 +0000 (08:08 +0900)
commit08eacf47431c45367c15fe2c8f6554e38d22c190
treeba0f9ac12e385940311471e752daa89d4921df34
parent45ca0e86daf85dddb3d767c6fc16cccba972aba6
Support permission check

After this patch is applied, the packagemanager.info privilege is needed
to get the component information and the running component context.
If a process sends a request to get the component information, AMD
checks the privilege before sending the result. If the process doesn't
have a permission, the function returns AUL_R_EILLACC.

The privilege is needed to use the follwing list:
 - aul_comp_info_create()
 - aul_comp_info_usr_create()
 - aul_comp_info_foreach_comp_info_from_app()
 - aul_comp_info_usr_foreach_comp_info_from_app()
 - aul_comp_info_foreach_comp_info()
 - aul_comp_info_usr_foreach_comp_info()
 - aul_comp_context_foreach_comp_context()
 - aul_comp_context_create()
 - aul_comp_context_usr_create()

Change-Id: I1494c4d6eb7e8bbd5b8c67ae181776998b518f9c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
CMakeLists.txt
include/aul_cmd.h
include/aul_comp_context.h
include/aul_comp_info.h
include/aul_comp_info_internal.h [new file with mode: 0644]
include/aul_key.h
src/aul_cmd.c
src/aul_comp_context.c
src/aul_comp_info.c
src/aul_comp_info_internal.c [new file with mode: 0644]
tool/compmgr_tool.c