monitor: Add a handler function for REQUEST_SET_RESOURCE_FLAG 72/280372/7
authorSung-hun Kim <sfoon.kim@samsung.com>
Tue, 23 Aug 2022 11:27:56 +0000 (20:27 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Wed, 31 Aug 2022 09:36:54 +0000 (18:36 +0900)
commit5081911ad619e90cf0c1734125b1475698d017f3
treea58083346bd76e0e38de5e4bef2d3ac8a6ecf274
parentd2f377a50ecaab9ad60b0be0e428711abe318a02
monitor: Add a handler function for REQUEST_SET_RESOURCE_FLAG

For users of capi, some information such as process information
does not be provided. To distinguish users, we set the visibility
of each resource to PUBLIC or PRIVATE due to the user's context.

When an user sets the visibility of the resource to PUBLIC and
then sets the interest of the resource attribute which has PRIVATE
visibility, the pass daemon will reject it and return -EPERM error.

Change-Id: I23a6b279aa2983aeb6e88cd51458d0c430e8692b
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
include/monitor/request.h
include/util/resource.h
lib/resource-monitor/resource-monitor.h
src/monitor/request-handler.c
src/util/resource.c