Fix sensors_hal selinux denials. am: 727d070b13 am: b273426e98

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

Change-Id: I2dd11ffcf9de7efd0f58fd809dca79c92687846f
This commit is contained in:
Robb Glasser 2022-02-22 20:39:55 +00:00 committed by Automerger Merge Worker
commit 340ceb1bfb
2 changed files with 1 additions and 6 deletions

View file

@ -1,6 +0,0 @@
# b/214473093
dontaudit hal_sensors_default sensor_reg_data_file:file { getattr };
dontaudit hal_sensors_default sensor_reg_data_file:file { open };
dontaudit hal_sensors_default sensor_reg_data_file:file { read };
# b/218930975
dontaudit hal_sensors_default hal_graphics_composer_default:binder { call };

View file

@ -25,6 +25,7 @@ r_dir_file(hal_sensors_default, persist_camera_file)
# Allow creation and writing of sensor registry data files.
allow hal_sensors_default sensor_reg_data_file:dir r_dir_perms;
allow hal_sensors_default sensor_reg_data_file:file r_file_perms;
# Allow access to the display info for ALS.
allow hal_sensors_default sysfs_display:file rw_file_perms;