Merge "Revert "Move ODPM file rule to pixel sepolicy"" into tm-dev

This commit is contained in:
Siddharth Kapoor 2022-04-07 04:06:31 +00:00 committed by Android (Google) Code Review
commit 9d3a25fb29
3 changed files with 4 additions and 0 deletions

View file

@ -152,6 +152,7 @@ type sysfs_chargelevel, sysfs_type, fs_type;
# ODPM
type powerstats_vendor_data_file, file_type, data_file_type;
type sysfs_odpm, sysfs_type, fs_type;
# bcl
type sysfs_bcl, sysfs_type, fs_type;

View file

@ -7,6 +7,8 @@ binder_call(hal_power_stats_default, hal_bluetooth_btlinux)
r_dir_file(hal_power_stats_default, sysfs_iio_devices)
allow hal_power_stats_default powerstats_vendor_data_file:dir search;
allow hal_power_stats_default powerstats_vendor_data_file:file r_file_perms;
allow hal_power_stats_default sysfs_odpm:dir search;
allow hal_power_stats_default sysfs_odpm:file rw_file_perms;
allow hal_power_stats_default sysfs_edgetpu:dir search;
allow hal_power_stats_default sysfs_edgetpu:file r_file_perms;

View file

@ -1 +1,2 @@
allow hal_thermal_default sysfs_iio_devices:dir r_dir_perms;
allow hal_thermal_default sysfs_odpm:file r_file_perms;