sepolicy: Add rules for PASR-HAL

Add contexts for memory offline nodes, and allow PASR-HAL to access
them.

Change-Id: I323f7a7369a3aea93f755bd7d2684374bf2f3b9e
This commit is contained in:
Ananth Raghavan Subramanian 2019-07-02 15:49:17 -07:00
parent da563d80ea
commit 3fd8770e09
4 changed files with 10 additions and 0 deletions

View file

@ -111,3 +111,5 @@ type sysfs_qvr_external_sensor, sysfs_type, fs_type;
#qspm-hal
type vendor_qspmhal_data_file, file_type, data_file_type;
#Memory offlining file types
type sysfs_memory_offline, sysfs_type, fs_type;

View file

@ -40,3 +40,4 @@ genfscon sysfs /devices/platform/soc/soc:qcom,msm-ext-disp/extcon/extcon1/cable.
genfscon sysfs /module/rmnet_perf/parameters u:object_r:sysfs_rmnet:s0
genfscon sysfs /kernel/qvr_external_sensor u:object_r:sysfs_qvr_external_sensor:s0
genfscon sysfs /devices/system/memory/ u:object_r:sysfs_memory_offline:s0

View file

@ -34,3 +34,7 @@ binder_call(hal_pasrmanager_client, hal_pasrmanager_server)
add_hwservice(hal_pasrmanager_server, hal_pasrmanager_hwservice)
allow hal_pasrmanager_client hal_pasrmanager_hwservice:hwservice_manager find;
allow hal_pasrmanager_qti sysfs:dir r_dir_perms;
allow hal_pasrmanager_qti sysfs_memory_offline:file rw_file_perms;
allow hal_pasrmanager_qti sysfs_memory_offline:dir r_dir_perms;

View file

@ -58,3 +58,6 @@ binder_call( system_app, update_engine )
#allow system app to access hal_qspmhal
hal_client_domain(system_app, hal_qspmhal);
# allow system_app to interact with pasr hal
hal_client_domain(system_app, hal_pasrmanager)