c86d3886ab
There is a desire to ensure that modprobe as a service can log to kmesg to help triage issues, so add support for the -s or --syslog flag to do so. Bug: 159424228 Bug: 151950334 Test: use modprobe as a service to load modules, check logs Change-Id: I884995f364b0fc604861797eb90d7225a372f864
13 lines
534 B
Text
13 lines
534 B
Text
type vendor_modprobe, domain;
|
|
|
|
# For the use of /vendor/bin/modprobe from vendor init.rc fragments
|
|
domain_trans(init, vendor_toolbox_exec, vendor_modprobe)
|
|
|
|
allow vendor_modprobe proc_modules:file r_file_perms;
|
|
allow vendor_modprobe proc_cmdline:file r_file_perms;
|
|
allow vendor_modprobe kmsg_device:chr_file w_file_perms;
|
|
allow vendor_modprobe self:global_capability_class_set sys_module;
|
|
allow vendor_modprobe kernel:key search;
|
|
|
|
allow vendor_modprobe { vendor_file }:system module_load;
|
|
r_dir_file(vendor_modprobe, { vendor_file })
|