Allow USF sensor HAL to read camera persist files. am: 0bd50d1eb5

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101-sepolicy/+/15352099

Change-Id: I585215a1e0266ebb52ccec18834c4f0e68ec6c69
This commit is contained in:
Max Shi 2021-07-22 23:45:02 +00:00 committed by Automerger Merge Worker
commit 0f58b38401

View file

@ -2,10 +2,11 @@
# USF sensor HAL SELinux type enforcements. # USF sensor HAL SELinux type enforcements.
# #
# Allow reading of sensor registry persist files. # Allow reading of sensor registry persist files and camera persist files.
allow hal_sensors_default persist_file:dir search; allow hal_sensors_default persist_file:dir search;
allow hal_sensors_default mnt_vendor_file:dir search; allow hal_sensors_default mnt_vendor_file:dir search;
r_dir_file(hal_sensors_default, persist_sensor_reg_file) r_dir_file(hal_sensors_default, persist_sensor_reg_file)
r_dir_file(hal_sensors_default, persist_camera_file)
# Allow creation and writing of sensor registry data files. # Allow creation and writing of sensor registry data files.
allow hal_sensors_default sensor_reg_data_file:dir rw_dir_perms; allow hal_sensors_default sensor_reg_data_file:dir rw_dir_perms;