grant debugfs access to insmod under userdebug

Bug: 182086611
Test: boot with the error gone
Change-Id: I555c12b4ccbb61266dc289aac577d0240bde4d28
This commit is contained in:
Adam Shih 2021-04-07 11:56:49 +08:00
parent 58b693aff0
commit 59ba0f97aa
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +0,0 @@
# b/182086611
dontaudit init-insmod-sh vendor_regmap_debugfs:dir { search };
dontaudit init-insmod-sh vendor_regmap_debugfs:dir { search };
dontaudit init-insmod-sh vendor_regmap_debugfs:dir { search };

View file

@ -8,4 +8,8 @@ allow init-insmod-sh vendor_toolbox_exec:file execute_no_trans;
set_prop(init-insmod-sh, vendor_device_prop) set_prop(init-insmod-sh, vendor_device_prop)
userdebug_or_eng(`
allow init-insmod-sh vendor_regmap_debugfs:dir search;
')
dontaudit init-insmod-sh proc_cmdline:file r_file_perms; dontaudit init-insmod-sh proc_cmdline:file r_file_perms;