[Detail] There is a workaround for bring-up, now it needs to be modified. [Solution] 1.Split workaround to sepcial *.te 2.Modify ged sepolicy 3.Modify mistake 4.Add sepolicy MTK-Commit-Id: 5a2b7e3fdc826a7ca6bc70a3810f14c1661e7d79 Change-Id: I0894de45e014a5eae754e35b57fbc9b21bc4bf90 CR-Id: ALPS04639771 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
26 lines
810 B
Plaintext
26 lines
810 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 };
|
|
|
|
# Date: 2019/06/14
|
|
# Operation : Migration
|
|
get_prop(bluetooth, mtk_amslog_prop)
|