Merge "add sepolicy rules for bluetooth common hal dumpstate" into main
This commit is contained in:
commit
89a81be220
3 changed files with 16 additions and 0 deletions
|
@ -1 +1,3 @@
|
|||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/bluetooth/dump/sepolicy/
|
||||
|
||||
PRODUCT_PACKAGES_DEBUG += dump_bt
|
||||
|
|
12
bluetooth/dump/sepolicy/dump.te
Normal file
12
bluetooth/dump/sepolicy/dump.te
Normal file
|
@ -0,0 +1,12 @@
|
|||
# pixel bluetooth common hal service
|
||||
pixel_bugreport(dump_bt)
|
||||
|
||||
allow hal_dumpstate_default vendor_bt_data_file:dir { open read search };
|
||||
allow hal_dumpstate_default vendor_bt_data_file:file read;
|
||||
allow dump_bt radio_vendor_data_file:dir create_dir_perms;
|
||||
allow dump_bt radio_vendor_data_file:file create_file_perms;
|
||||
allow dump_bt vendor_bt_data_file:dir r_dir_perms;
|
||||
allow dump_bt vendor_bt_data_file:file r_file_perms;
|
||||
allow dump_bt sscoredump_vendor_data_crashinfo_file:dir search;
|
||||
allow dump_bt sscoredump_vendor_data_coredump_file:dir r_dir_perms;
|
||||
allow dump_bt sscoredump_vendor_data_coredump_file:file r_file_perms;
|
2
bluetooth/dump/sepolicy/file_contexts
Normal file
2
bluetooth/dump/sepolicy/file_contexts
Normal file
|
@ -0,0 +1,2 @@
|
|||
# bt common hal dump_bt service
|
||||
/vendor/bin/dump/dump_bt u:object_r:dump_bt_exec:s0
|
Loading…
Add table
Add a link
Reference in a new issue