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:
commit
b37fe8c071
3 changed files with 4 additions and 4 deletions
2
whitechapel/vendor/google/file.te
vendored
2
whitechapel/vendor/google/file.te
vendored
|
@ -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
|
||||
|
|
2
whitechapel/vendor/google/file_contexts
vendored
2
whitechapel/vendor/google/file_contexts
vendored
|
@ -388,7 +388,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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue