xref: /aosp_15_r20/system/sepolicy/private/modprobe.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1typeattribute modprobe coredomain;
2
3allow modprobe proc_modules:file r_file_perms;
4allow modprobe proc_cmdline:file r_file_perms;
5allow modprobe self:global_capability_class_set sys_module;
6allow modprobe kernel:key search;
7allow modprobe system_dlkm_file:dir search;
8allow modprobe system_dlkm_file:file r_file_perms;
9allow modprobe system_dlkm_file:system module_load;
10recovery_only(`
11  allow modprobe rootfs:system module_load;
12  allow modprobe rootfs:file r_file_perms;
13')
14