allow access fastrpc total_dma_kb sysfs
This helps understand fastrpc dma buffer size
Bug: 168084904
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Merged-In: I3369763addf6a85d0f8d925ffb11278ad82e0395
Change-Id: I3369763addf6a85d0f8d925ffb11278ad82e0395
diff --git a/vendor/qcom/common/hal_dumpstate_impl.te b/vendor/qcom/common/hal_dumpstate_impl.te
index 18d9254..211961b 100644
--- a/vendor/qcom/common/hal_dumpstate_impl.te
+++ b/vendor/qcom/common/hal_dumpstate_impl.te
@@ -126,6 +126,9 @@
userdebug_or_eng(`allow hal_dumpstate_impl debugfs_dma_bufinfo:file r_file_perms;')
dontaudit hal_dumpstate_impl debugfs_dma_bufinfo:file r_file_perms;
+#Dumpstats fastrpc buffer
+allow hal_dumpstate_impl sysfs_fastrpc:file r_file_perms;
+
# Query and dump power supply nodes
allow hal_dumpstate_impl sysfs_batteryinfo:dir search;
allow hal_dumpstate_impl sysfs_batteryinfo:file r_file_perms;