device_google_gs101/whitechapel/vendor/google/init-insmod-sh.te
Adam Shih 59ba0f97aa grant debugfs access to insmod under userdebug
Bug: 182086611
Test: boot with the error gone
Change-Id: I555c12b4ccbb61266dc289aac577d0240bde4d28
2021-04-07 11:56:49 +08:00

15 lines
491 B
Text

type init-insmod-sh, domain;
type init-insmod-sh_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(init-insmod-sh)
allow init-insmod-sh self:capability sys_module;
allow init-insmod-sh vendor_kernel_modules:system module_load;
allow init-insmod-sh vendor_toolbox_exec:file execute_no_trans;
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;