Allow hal_thermal_default to read iio/odpm sysfs nodes

Bug: 260366399
Bug: 261651187
Bug: 264204525
Change-Id: I7358b7740f6c30bd7b05e29e931a4c11226c6253
This commit is contained in:
Wilson Sung
2023-02-23 20:31:11 +08:00
parent 3c52a9ab3b
commit fc8f4f8f24
2 changed files with 3 additions and 13 deletions

View File

@@ -1,16 +1,4 @@
# b/260366399
dontaudit hal_thermal_default sysfs:file { getattr };
dontaudit hal_thermal_default sysfs:file { open };
dontaudit hal_thermal_default sysfs:file { read };
# b/261651187
dontaudit hal_thermal_default sysfs_iio_devices:dir { open };
dontaudit hal_thermal_default sysfs_iio_devices:dir { read };
dontaudit hal_thermal_default sysfs_iio_devices:dir { search };
# b/264204525
dontaudit hal_thermal_default sysfs_odpm:file { getattr };
dontaudit hal_thermal_default sysfs_odpm:file { open };
dontaudit hal_thermal_default sysfs_odpm:file { read };
# b/264490033
userdebug_or_eng(`
permissive hal_thermal_default;
')
')

2
vendor/hal_thermal_default.te vendored Normal file
View File

@@ -0,0 +1,2 @@
r_dir_file(hal_thermal_default, sysfs_iio_devices)
r_dir_file(hal_thermal_default, sysfs_odpm)