FR 48725: Support for new rules related to vendor props

- Sepolicy changes required for support for additional
  rules related to vendor created Android properties.

- Sepolicy changes required for new HAL dump
  format

CRs-Fixed: 2227667 2216610
Change-Id: I2fb44a6ea40f669698e4af1eee9b68039f8af6b9
This commit is contained in:
RAJATH R 2018-04-19 11:41:35 +05:30 committed by Gerrit - the friendly Code Review server
parent a497cc4521
commit cada09ca41
3 changed files with 23 additions and 0 deletions

View file

@ -8,12 +8,25 @@ allow hal_bluetooth system_server:binder call;
set_prop(hal_bluetooth_default, wc_prop)
# bluetooth properties
set_prop(hal_bluetooth, vendor_bluetooth_prop)
#For bluetooth firmware
r_dir_file(hal_bluetooth_default, bt_firmware_file)
allow hal_bluetooth_default persist_bluetooth_file:dir r_dir_perms;
allow hal_bluetooth_default persist_bluetooth_file:file r_file_perms;
userdebug_or_eng(`
allow hal_bluetooth_default ramdump_vendor_data_file:file create_file_perms;
allow hal_bluetooth_default ramdump_vendor_data_file:dir create_dir_perms;
allow hal_bluetooth_default proc_sysrq:file rw_file_perms;
allow hal_bluetooth_default debugfs_ipc:file rw_file_perms;
allow hal_bluetooth_default debugfs_ipc:dir rw_dir_perms;
')
r_dir_file(hal_bluetooth_default, persist_file)
allow hal_bluetooth_default wc_prop:file read;

View file

@ -37,3 +37,6 @@ type vendor_mpdecision_prop, property_type;
# HBTP
type ctl_vendor_hbtp_prop, property_type;
# Bluetooth props
type vendor_bluetooth_prop, property_type;

View file

@ -1,3 +1,10 @@
persist.vendor.service.bdroid. u:object_r:vendor_bluetooth_prop:s0
persist.vendor.bluetooth. u:object_r:vendor_bluetooth_prop:s0
vendor.wc_transport. u:object_r:vendor_bluetooth_prop:s0
vendor.bluetooth. u:object_r:vendor_bluetooth_prop:s0
vendor.bt. u:object_r:vendor_bluetooth_prop:s0
vendor.qcom.bluetooth. u:object_r:vendor_bluetooth_prop:s0
persist.vendor.bt. u:object_r:vendor_bluetooth_prop:s0
ctl.vendor.msm_irqbalance u:object_r:msm_irqbalance_prop:s0
ctl.vendor.netmgrd u:object_r:ctl_netmgrd_prop:s0
ctl.vendor.port-bridge u:object_r:ctl_port-bridge_prop:s0