From b36cf348d07aee685d86197cc1d8972c5be2ae71 Mon Sep 17 00:00:00 2001 From: Ocean Chen Date: Thu, 10 Mar 2022 15:09:06 +0800 Subject: [PATCH] sepolicy: add smart_idle_maint_enabled_prop for pixelstats pixelstats get this sysprop hit the avc denied persist.device_config.storage_native_boot.smart_idle_maint_enabled pixelstats-vend: type=1400 audit(0.0:22): avc: denied { read } for name="u:object_r:device_config_storage_native_boot_prop:s0" dev="tmpfs" ino=171 scontext=u:r:pixelstats_vendor:s0 tcontext=u:object_r:device_config_storage_native_boot_prop:s0 tclass=file permissive=0 Bug: 215443809 Test: local build and run pixelstats Signed-off-by: Ocean Chen Change-Id: Iedb4fa00c5e18cda6c799c3461bf8298bcf357eb --- whitechapel_pro/pixelstats_vendor.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel_pro/pixelstats_vendor.te b/whitechapel_pro/pixelstats_vendor.te index 645b6ae2..69674fb8 100644 --- a/whitechapel_pro/pixelstats_vendor.te +++ b/whitechapel_pro/pixelstats_vendor.te @@ -9,3 +9,6 @@ allow pixelstats_vendor sysfs_wlc:file rw_file_perms; # Batery history allow pixelstats_vendor battery_history_device:chr_file r_file_perms; + +# storage smart idle maintenance +get_prop(pixelstats_vendor, smart_idle_maint_enabled_prop);