odpm: Rename the odpm_config sepolicies to be more consistent

Test: Ensure that there are no sepolicy errors on odpm_config
Bug: 192674986
Change-Id: I3043a544511c8c3051e1bd10e9f6b668b251cf5f
This commit is contained in:
Stephane Lee 2021-07-14 16:10:15 -07:00
parent d4a7e81293
commit c7342a7824
3 changed files with 4 additions and 4 deletions

View file

@ -147,7 +147,7 @@ type sysfs_backlight, sysfs_type, fs_type;
type sysfs_chargelevel, sysfs_type, fs_type;
# ODPM
type odpm_config_file, file_type, data_file_type;
type powerstats_vendor_data_file, file_type, data_file_type;
type sysfs_odpm, sysfs_type, fs_type;
# bcl

View file

@ -387,7 +387,7 @@
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
# ODPM
/data/vendor/powerstats(/.*)? u:object_r:odpm_config_file:s0
/data/vendor/powerstats(/.*)? u:object_r:powerstats_vendor_data_file:s0
# sensor direct DMA-BUF heap
/dev/dma_heap/sensor_direct_heap u:object_r:sensor_direct_heap_device:s0

View file

@ -5,8 +5,8 @@ allow hal_power_stats_default sysfs_scsi_devices_0000:file r_file_perms;
binder_call(hal_power_stats_default, hal_bluetooth_btlinux)
r_dir_file(hal_power_stats_default, sysfs_iio_devices)
allow hal_power_stats_default odpm_config_file:dir search;
allow hal_power_stats_default odpm_config_file:file r_file_perms;
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;