Revert "Revert "[DO NOT MERGE] Add selinux policy for chre vendo..."

Revert submission 24526613-revert-23834879-CHRE BT LOG-MHDBQNZAGV

Reason for revert: Fixed and tested with a followup cl

Reverted changes: /q/submissionid:24526613-revert-23834879-CHRE+BT+LOG-MHDBQNZAGV

Change-Id: I29866a91abfcfa380d772da447eb95344df43f8f
This commit is contained in:
Yixuan Wang 2023-08-29 19:17:31 +00:00 committed by Android (Google) Code Review
parent 84f1209636
commit bd654f00d9
3 changed files with 6 additions and 0 deletions

4
vendor/chre.te vendored
View file

@ -9,6 +9,10 @@ allow chre aoc_device:chr_file rw_file_perms;
allow chre sysfs_aoc:dir search;
allow chre sysfs_aoc_boottime:file r_file_perms;
# Allow CHRE to write to data to chre data directory
allow chre chre_data_file:dir create_dir_perms;
allow chre chre_data_file:file create_file_perms;
# Allow CHRE to create thread to watch AOC's device
allow chre device:dir r_dir_perms;

1
vendor/file.te vendored
View file

@ -43,6 +43,7 @@ type vendor_bt_data_file, file_type, data_file_type;
type sensor_reg_data_file, file_type, data_file_type;
type uwb_vendor_data_file, file_type, data_file_type, app_data_file_type;
type uwb_data_vendor, file_type, data_file_type;
type chre_data_file, file_type, data_file_type;
# Vendor sched files
userdebug_or_eng(`

View file

@ -44,6 +44,7 @@
# Vendor
/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0
/data/vendor/uwb(/.*)? u:object_r:uwb_data_vendor:s0
/data/vendor/chre(/.*)? u:object_r:chre_data_file:s0
# persist
/mnt/vendor/persist/camera(/.*)? u:object_r:persist_camera_file:s0