Allow bthal to access vendor bluetooth folder
Bug: 289055382 Test: enable vendor debug log and check the vendor snoop log contain the vendor log Change-Id: Ia8980791438b653930a866f038b19fd58b3d3ffd
This commit is contained in:
3
cheetah/file.te
Normal file
3
cheetah/file.te
Normal file
@@ -0,0 +1,3 @@
|
||||
# BT
|
||||
type vendor_bt_data_file, file_type, data_file_type;
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
/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
|
||||
|
||||
3
cheetah/hal_bluetooth_btlinux.te
Normal file
3
cheetah/hal_bluetooth_btlinux.te
Normal 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;
|
||||
|
||||
3
panther/file.te
Normal file
3
panther/file.te
Normal file
@@ -0,0 +1,3 @@
|
||||
# BT
|
||||
type vendor_bt_data_file, file_type, data_file_type;
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
/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
|
||||
3
panther/hal_bluetooth_btlinux.te
Normal file
3
panther/hal_bluetooth_btlinux.te
Normal 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;
|
||||
|
||||
Reference in New Issue
Block a user