diff --git a/whitechapel_pro/bluetooth.te b/whitechapel_pro/bluetooth.te index 3795e299..aff0e1a4 100644 --- a/whitechapel_pro/bluetooth.te +++ b/whitechapel_pro/bluetooth.te @@ -1,5 +1,2 @@ allow bluetooth proc_vendor_sched:dir r_dir_perms; allow bluetooth proc_vendor_sched:file w_file_perms; - -allow hal_bluetooth_btlinux aoc_device:chr_file { getattr open read write }; -allow hal_bluetooth_btlinux device:dir r_dir_perms; \ No newline at end of file diff --git a/whitechapel_pro/file.te b/whitechapel_pro/file.te index 4a232600..0038103c 100644 --- a/whitechapel_pro/file.te +++ b/whitechapel_pro/file.te @@ -68,6 +68,9 @@ type persist_display_file, file_type, vendor_persist_type; # CHRE type chre_socket, file_type; +# BT +type vendor_bt_data_file, file_type, data_file_type; + # Storage Health HAL type proc_f2fs, proc_type, fs_type; diff --git a/whitechapel_pro/file_contexts b/whitechapel_pro/file_contexts index c4f5b098..35f991ba 100644 --- a/whitechapel_pro/file_contexts +++ b/whitechapel_pro/file_contexts @@ -211,6 +211,7 @@ /dev/maxfg_history u:object_r:battery_history_device:s0 /dev/battery_history u:object_r:battery_history_device:s0 /data/vendor/powerstats(/.*)? u:object_r:powerstats_vendor_data_file:s0 +/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0 # Persist /mnt/vendor/persist/battery(/.*)? u:object_r:persist_battery_file:s0 diff --git a/whitechapel_pro/hal_bluetooth_btlinux.te b/whitechapel_pro/hal_bluetooth_btlinux.te new file mode 100644 index 00000000..dc746294 --- /dev/null +++ b/whitechapel_pro/hal_bluetooth_btlinux.te @@ -0,0 +1,5 @@ +allow hal_bluetooth_btlinux aoc_device:chr_file { getattr open read write }; +allow hal_bluetooth_btlinux device:dir r_dir_perms; + +allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms; +allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;