bthal: allow bthal to access bluetooth kernel driver logbuffer_btlpm

and logbuffer_btuart device node

* add sepolicy rules to let bthal can access bluetooth kernel device
  nodes dev/logbuffer_btlpm and dev/logbuffer_tty16 in engineer
  or user debug build

Bug: 177794127
Test: Manually
Change-Id: I5253719df82ca7ef8e64cbd3f2b0ff6d3f088edc
This commit is contained in:
jonerlin 2021-03-27 13:50:48 +08:00
parent 53ae55618a
commit cb3f59b89e
2 changed files with 3 additions and 0 deletions

View file

@ -296,6 +296,8 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.1-service\.bcmbtlinux u:object_r:hal_bluetooth_btlinux_exec:s0
/dev/wbrc u:object_r:wb_coexistence_dev:s0
/dev/ttySAC16 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty16 u:object_r:logbuffer_device:s0
# Audio
/mnt/vendor/persist/aoc(/.*)? u:object_r:persist_aoc_file:s0

View file

@ -18,4 +18,5 @@ allow hal_bluetooth_btlinux sscoredump_vendor_data_crashinfo_file:file create_fi
userdebug_or_eng(`
allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:dir create_dir_perms;
allow hal_bluetooth_btlinux sscoredump_vendor_data_coredump_file:file create_file_perms;
allow hal_bluetooth_btlinux logbuffer_device:chr_file r_file_perms;
')