sepolicy: Add sepolicy rules for vm_bms
create vendor_vm_bms_debug_prop for debug properties. Change-Id: I6ac3986af96bb50288e404c377613c6b0d4dc998
This commit is contained in:
parent
6ed2f466d1
commit
53203d8bfb
4 changed files with 9 additions and 0 deletions
1
legacy/vendor/common/init_shell.te
vendored
1
legacy/vendor/common/init_shell.te
vendored
|
@ -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)
|
||||
|
|
1
legacy/vendor/common/property.te
vendored
1
legacy/vendor/common/property.te
vendored
|
@ -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;
|
||||
|
|
1
legacy/vendor/common/property_contexts
vendored
1
legacy/vendor/common/property_contexts
vendored
|
@ -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
|
||||
|
|
6
legacy/vendor/common/vm_bms.te
vendored
6
legacy/vendor/common/vm_bms.te
vendored
|
@ -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)
|
||||
')
|
||||
|
|
Loading…
Reference in a new issue