Add BT hal sepolicy for allowing accessing AoC device node

Allow BT hal to access device and aoc_device.

Test: manual and check avc log
Bug: 265587172
Change-Id: I62e9fb3f0278af7e0365f88bb3723cb47a266b81
This commit is contained in:
kuanyuhuang 2023-02-08 08:26:01 +00:00
parent 0d013cb30e
commit 3ce317ca5f
2 changed files with 4 additions and 6 deletions

View file

@ -3,9 +3,4 @@ dontaudit hal_bluetooth_btlinux default_android_service:service_manager { find }
# b/264489608
userdebug_or_eng(`
permissive hal_bluetooth_btlinux;
')# b/265587172
dontaudit hal_bluetooth_btlinux aoc_device:chr_file { getattr };
dontaudit hal_bluetooth_btlinux aoc_device:chr_file { open };
dontaudit hal_bluetooth_btlinux aoc_device:chr_file { read write };
dontaudit hal_bluetooth_btlinux device:dir { read };
dontaudit hal_bluetooth_btlinux device:dir { watch };
')

3
vendor/hal_bluetooth_btlinux.te vendored Normal file
View file

@ -0,0 +1,3 @@
# Allow access to always-on compute device node
allow hal_bluetooth_btlinux aoc_device:chr_file rw_file_perms;
allow hal_bluetooth_btlinux device:dir r_dir_perms;