allow bthal to access vendor bluetooth folder

Bug: 316071157
Test: enable vendor btsnoop property and check the vendor snoop log
Flag: EXEMPT .
Change-Id: I5b1b9f475089313c205ae384589e07414497a72b
This commit is contained in:
Limon Mia 2023-12-26 07:53:45 +00:00
parent 804c6d80bb
commit bb2d2ad0c9
3 changed files with 7 additions and 0 deletions

3
vendor/file.te vendored Normal file
View file

@ -0,0 +1,3 @@
# BT
type vendor_bt_data_file, file_type, data_file_type;

View file

@ -11,6 +11,7 @@
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0
# Haptics
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private u:object_r:hal_vibrator_default_exec:s0

3
vendor/hal_bluetooth_btlinux.te vendored Normal file
View file

@ -0,0 +1,3 @@
allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;