non_plat: Label volte_md_status and grant required permissions

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Change-Id: Ia41f71d07852bcb357cc26c0cb82d67c53cf19e9
This commit is contained in:
Aayush Gupta 2021-01-01 00:00:16 +05:30
parent 9ef4675f68
commit 1e1ffa249d
4 changed files with 19 additions and 0 deletions

View File

@ -710,3 +710,6 @@
#Ipsec
/(system\/vendor|vendor)/bin/ipsec_mon u:object_r:ipsec_mon_exec:s0
# IMS
/(system\/vendor|vendor)/bin/volte_md_status u:object_r:volte_md_status_exec:s0

View File

@ -335,3 +335,6 @@ type mtk_camera_prop, property_type, mtk_core_property_type;
# MTK network property
type mtk_network_prop, property_type, mtk_core_property_type;
# IMS
type mtk_md_status_prop, property_type;

View File

@ -374,3 +374,6 @@ vendor.wlan.firmware.version u:object_r:vendor_wifi_version:s0
# MTK camera property
ro.mtk_cam_dualzoom_support u:object_r:mtk_camera_prop:s0
ro.mtk_cam_stereo_camera_support u:object_r:mtk_camera_prop:s0
# IMS
vendor.volte_md_status u:object_r:mtk_md_status_prop:s0

View File

@ -0,0 +1,10 @@
type volte_md_status, domain, netdomain, mtkimsmddomain;
type volte_md_status_exec, exec_type, file_type, vendor_file_type;;
init_daemon_domain(volte_md_status)
allow volte_md_status ccci_device:chr_file rw_file_perms;
allow volte_md_status property_socket:sock_file write;
allow volte_md_status init:unix_stream_socket connectto;
set_prop(volte_md_status, mtk_md_status_prop)