Merge "odpm: Rename the odpm_config sepolicies to be more consistent" into sc-dev am: ea6996bc52

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

Change-Id: I587aad68aafb8b4229fd76f2a35d94ccc4a51987
This commit is contained in:
Stephane Lee 2021-07-16 02:11:29 +00:00 committed by Automerger Merge Worker
commit b37fe8c071
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; type sysfs_chargelevel, sysfs_type, fs_type;
# ODPM # 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; type sysfs_odpm, sysfs_type, fs_type;
# bcl # bcl

View file

@ -388,7 +388,7 @@
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0 /dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
# ODPM # 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 # sensor direct DMA-BUF heap
/dev/dma_heap/sensor_direct_heap u:object_r:sensor_direct_heap_device:s0 /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) binder_call(hal_power_stats_default, hal_bluetooth_btlinux)
r_dir_file(hal_power_stats_default, sysfs_iio_devices) 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 powerstats_vendor_data_file:dir search;
allow hal_power_stats_default odpm_config_file:file r_file_perms; 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:dir search;
allow hal_power_stats_default sysfs_odpm:file rw_file_perms; allow hal_power_stats_default sysfs_odpm:file rw_file_perms;