From 51cfab33de855071e459d46b2bc2f6dfd194f6a7 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Mon, 7 Nov 2022 10:44:35 -0800 Subject: MM: allow vendor_init creates trace instance To get pixel specific trace events, vendor_init needs permissions to create trace instance. Test: "adb bugreport" includes the trace dump Bug: 238728493 Change-Id: Id7fdeb31ec8d45d40072bd28cc2e68e47be60c17 Signed-off-by: Minchan Kim --- mm/gki/vendor_init.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/gki/vendor_init.te b/mm/gki/vendor_init.te index 5bedbad..018b318 100644 --- a/mm/gki/vendor_init.te +++ b/mm/gki/vendor_init.te @@ -1,3 +1,6 @@ allow vendor_init proc_watermark_boost_factor:file w_file_perms; allow vendor_init proc_lowmem_reserve_ratio:file w_file_perms; allow vendor_init proc_min_free_kbytes:file w_file_perms; + +allow vendor_init debugfs_tracing_instances:dir create_dir_perms; +allow vendor_init debugfs_tracing_instances:file w_file_perms; -- cgit v1.2.3