1type vendor_modprobe, domain;
2
3# For the use of /vendor/bin/modprobe from vendor init.rc fragments
4domain_trans(init, vendor_toolbox_exec, vendor_modprobe)
5
6allow vendor_modprobe proc_modules:file r_file_perms;
7allow vendor_modprobe proc_cmdline:file r_file_perms;
8allow vendor_modprobe kmsg_device:chr_file w_file_perms;
9allow vendor_modprobe self:global_capability_class_set sys_module;
10allow vendor_modprobe kernel:key search;
11
12allow vendor_modprobe { vendor_file }:system module_load;
13r_dir_file(vendor_modprobe, { vendor_file })
14