summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinchan Kim <minchan@google.com>2022-11-07 10:44:35 -0800
committerMinchan Kim <minchan@google.com>2022-11-08 10:14:26 -0800
commit51cfab33de855071e459d46b2bc2f6dfd194f6a7 (patch)
tree1213c05b383713b23fef03411a91c97b10a62c45
parentff2f391c34638e6cc836d65abf05bac2f1e49e45 (diff)
downloadpixel-sepolicy-51cfab33de855071e459d46b2bc2f6dfd194f6a7.tar.gz
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 <minchan@google.com>
-rw-r--r--mm/gki/vendor_init.te3
1 files changed, 3 insertions, 0 deletions
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;