[Detail] 1. Add selinux right for MTKLogger to able to connect Bluetooth via socket 2. Add selinux right for Bluetooth to set debug property for MTKLogger state check MTK-Commit-Id: db60d64b8ed91dfee48588fb5a32f2bedc2ba604 Change-Id: I31c5abb153c2bcd44a2dafca0f1f669e7310c3fe CR-Id: ALPS03866092 Feature: BT AOSP
22 lines
729 B
Plaintext
22 lines
729 B
Plaintext
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
|
|
# Date:W17.07
|
|
# Operation : bt hal developing
|
|
# Purpose : bt hal interface permission
|
|
binder_call(bluetooth, mtk_hal_bluetooth)
|
|
|
|
allow bluetooth storage_stub_file:dir getattr;
|
|
|
|
# Date: 2018/01/17
|
|
#allow bluetooth to set property
|
|
set_prop(bluetooth, vendor_bluetooth_prop)
|
|
set_prop(bluetooth, debug_prop)
|
|
|
|
# Date: 2018/02/02
|
|
# Major permission allow are in /system/sepoplicy/private/bluetooth.te
|
|
# Add dir create perms for bluetooth on /data/misc/bluetooth/logs
|
|
allow bluetooth bluetooth_logs_data_file:dir { create_dir_perms relabelto };
|
|
allow bluetooth bluetooth_logs_data_file:fifo_file { create_file_perms };
|