Merge "Add BT hal sepolicy for allowing accessing AoC device node"

This commit is contained in:
Tom Huang 2023-02-10 02:23:42 +00:00 committed by Android (Google) Code Review
commit dfe1f3799b
2 changed files with 4 additions and 6 deletions

View file

@ -1,9 +1,4 @@
# 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;