From bfa8213d8cd3fceb660e10f2734b3c55d7204500 Mon Sep 17 00:00:00 2001 From: Daeho Jeong Date: Mon, 3 Apr 2023 13:01:00 -0700 Subject: [PATCH] traced_probes: allow traced_probes to access diskstats info Test: check selinux log while perfetto I/O profiling Change-Id: I45247b72343c8bca219c7250c467c97e5dacab5c Signed-off-by: Daeho Jeong --- private/traced_probes.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private/traced_probes.te b/private/traced_probes.te index 5cc271cad..86f506788 100644 --- a/private/traced_probes.te +++ b/private/traced_probes.te @@ -90,6 +90,9 @@ allow traced_probes { allow traced_probes sysfs_devfreq_dir:dir r_dir_perms; allow traced_probes sysfs_devfreq_cur:file r_file_perms; +# Allow access to read /proc/diskstats for I/O profiling. +allow traced_probes proc_diskstats:file r_file_perms; + # 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_power_stats)