sepolicy: Add sepolicy rules for vm_bms

create vendor_vm_bms_debug_prop for debug properties.

Change-Id: I6ac3986af96bb50288e404c377613c6b0d4dc998
This commit is contained in:
Himanshu Agrawal 2021-04-14 18:43:00 +05:30 committed by Gerrit - the friendly Code Review server
parent 6ed2f466d1
commit 53203d8bfb
4 changed files with 9 additions and 0 deletions

View file

@ -109,6 +109,7 @@ userdebug_or_eng(`
#set_prop(qti_init_shell, ctl_console_prop)
set_prop(qti_init_shell, vendor_coresight_prop)
set_prop(qti_init_shell, vendor_audio_debug_prop)
set_prop(qti_init_shell, vendor_vm_bms_debug_prop)
')
set_prop(vendor_qti_init_shell,vendor_dcvs_prop)

View file

@ -39,6 +39,7 @@ type vendor_ctl_LKCore_prop, property_type;
type vendor_freq_prop, property_type;
type vendor_vm_bms_prop, property_type; #To start vm_bms
type vendor_vm_bms_debug_prop, property_type;
type vendor_dataqti_prop, property_type;
type vendor_dataadpl_prop, property_type;
type vendor_dataqdp_prop, property_type;

View file

@ -50,6 +50,7 @@ persist.vendor.cne.logging.qxdm u:object_r:vendor_cnd_vendor_prop:s0
persist.vendor.cnd. u:object_r:vendor_cnd_vendor_prop:s0
persist.vendor.cnd.wqe u:object_r:vendor_cnd_vendor_prop:s0
ctl.vendor.vm_bms u:object_r:vendor_vm_bms_prop:s0
vendor.vbms.debug.enable u:object_r:vendor_vm_bms_debug_prop:s0
ro.vendor.qualcomm.bluetooth. u:object_r:vendor_bluetooth_prop:s0
ctl.vendor.ipacm u:object_r:vendor_ipacm_prop:s0
ctl.vendor.ipacm-diag u:object_r:vendor_ipacm-diag_prop:s0

View file

@ -54,3 +54,9 @@ allow vm_bms self:capability { setpcap setgid setuid };
#allow vm_bms to block the system suspend and get wake lock
wakelock_use(vm_bms)
#allow start and stop of vm_bms via ctl.start/ctl.stop
set_prop(vm_bms, vendor_vm_bms_prop)
userdebug_or_eng(`
set_prop(vm_bms, vendor_vm_bms_debug_prop)
')