Merge "Allow traced_probes to read devfreq" am: 47b6227134

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1676945

Change-Id: I21217e5e095b3113e6d65d006c043be75295a4d1
This commit is contained in:
David Massoud 2021-04-22 00:40:18 +00:00 committed by Automerger Merge Worker
commit eeb537fcb8
3 changed files with 8 additions and 0 deletions

View file

@ -116,6 +116,8 @@
snapuserd_socket snapuserd_socket
soc_prop soc_prop
speech_recognition_service speech_recognition_service
sysfs_devfreq_cur
sysfs_devfreq_dir
sysfs_devices_cs_etm sysfs_devices_cs_etm
sysfs_dma_heap sysfs_dma_heap
sysfs_dmabuf_stats sysfs_dmabuf_stats

View file

@ -82,6 +82,10 @@ allow traced_probes {
proc_stat proc_stat
}:file r_file_perms; }:file r_file_perms;
# Allow access to read /sys/class/devfreq/ and /$DEVICE/cur_freq files
allow traced_probes sysfs_devfreq_dir:dir r_dir_perms;
allow traced_probes sysfs_devfreq_cur:file r_file_perms;
# Allow access to the IHealth and IPowerStats HAL service for tracing battery counters. # Allow access to the IHealth and IPowerStats HAL service for tracing battery counters.
hal_client_domain(traced_probes, hal_health) hal_client_domain(traced_probes, hal_health)
hal_client_domain(traced_probes, hal_power_stats) hal_client_domain(traced_probes, hal_power_stats)

View file

@ -86,6 +86,8 @@ type sysfs_android_usb, fs_type, sysfs_type;
type sysfs_uio, sysfs_type, fs_type; type sysfs_uio, sysfs_type, fs_type;
type sysfs_batteryinfo, fs_type, sysfs_type; type sysfs_batteryinfo, fs_type, sysfs_type;
type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject; type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_devfreq_cur, fs_type, sysfs_type;
type sysfs_devfreq_dir, fs_type, sysfs_type;
type sysfs_devices_block, fs_type, sysfs_type; type sysfs_devices_block, fs_type, sysfs_type;
type sysfs_dm, fs_type, sysfs_type; type sysfs_dm, fs_type, sysfs_type;
type sysfs_dm_verity, fs_type, sysfs_type; type sysfs_dm_verity, fs_type, sysfs_type;